Module: Enumerable

Defined in:
lib/rbkb/extends.rb

Instance Method Summary collapse

Instance Method Details

#each_recursive(&block) ⇒ Object



713
714
715
716
717
718
# File 'lib/rbkb/extends.rb', line 713

def each_recursive(&block)
  self.each do |n|
    block.call(n)
    n.each_recursive(&block) if n.kind_of? Array or n.kind_of? Hash
  end
end