Sha256: b078f3532a8ed578b92f9e6c1628c63e4528c22c228cd167967d3061f691e39b

Contents?: true

Size: 158 Bytes

Versions: 2

Compression:

Stored size: 158 Bytes

Contents

module Enumerable
  def each_recursive(&block)
    self.each do |n|
      block.call(n)
      n.each_recursive(&block) if Enumerable === n
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rbkb-0.7.1 lib/rbkb/extends/enumerable.rb
rbkb-0.7.0 lib/rbkb/extends/enumerable.rb