Class: Provider::Folder::Tree
Instance Method Summary collapse
- #each(&block) ⇒ Object
-
#initialize(tree) ⇒ Tree
constructor
A new instance of Tree.
Constructor Details
#initialize(tree) ⇒ Tree
Returns a new instance of Tree.
5 6 7 |
# File 'lib/providers.rb', line 5 def initialize(tree) @tree = tree end |
Instance Method Details
#each(&block) ⇒ Object
9 10 11 |
# File 'lib/providers.rb', line 9 def each(&block) traverse_list @tree, nil, &block end |