Class: DevSuite::DirectoryTree::Builder::Base
- Inherits:
-
Utils::Construct::Component::Base
- Object
- Utils::Construct::Component::Base
- DevSuite::DirectoryTree::Builder::Base
- Defined in:
- lib/dev_suite/directory_tree/builder/base.rb
Instance Method Summary collapse
-
#build(path) ⇒ Object
Recursive method to build the tree.
Methods inherited from Utils::Construct::Component::Base
Instance Method Details
#build(path) ⇒ Object
Recursive method to build the tree
10 11 12 13 14 15 16 |
# File 'lib/dev_suite/directory_tree/builder/base.rb', line 10 def build(path) return (path) unless path.readable? build_node(path) rescue Errno::EACCES (path) end |