Class: Provider::Folder::Tree

Inherits:
Object
  • Object
show all
Defined in:
lib/providers.rb

Instance Method Summary collapse

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