Sha256: 8d055fe8b07f2ebbd363c1bb014f4384973230fb796f8cba3767501fb92f58e6
Contents?: true
Size: 537 Bytes
Versions: 3
Compression:
Stored size: 537 Bytes
Contents
# frozen_string_literal: true module DevSuite module DirectoryTree class Visualizer # Visualizes the directory tree # @param path [String] The base path of the directory def visualize(path) root = Config.configuration.builder.build(Pathname.new(path)) renderer = Config.configuration.renderer puts renderer.render(node: root) end end class << self def visualize(path) visualizer = Visualizer.new visualizer.visualize(path) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dev_suite-0.2.3 | lib/dev_suite/directory_tree/visualizer.rb |
dev_suite-0.2.2 | lib/dev_suite/directory_tree/visualizer.rb |
dev_suite-0.2.1 | lib/dev_suite/directory_tree/visualizer.rb |