Module: Enumerable

Defined in:
lib/rbkb/extends.rb

Instance Method Summary collapse

Instance Method Details

#each_recursive(&block) ⇒ Object



718
719
720
721
722
723
# File 'lib/rbkb/extends.rb', line 718

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