Sha256: cf96e18ac703a920d981cab077c4d263690f7dd363e7ab5c637c94635c60d909

Contents?: true

Size: 396 Bytes

Versions: 1

Compression:

Stored size: 396 Bytes

Contents

require_relative "./hyper_iterator/version"
require_relative "./iterators/each_bang"
require_relative "./iterators/each_slice_bang"

module HyperIterator
  AVAILABLE_METHODS = [
    :each_slice!,
    :each!
  ].freeze

  def self.each!(iterable)
    iterable.each! { |el| yield el }
  end
end

Array.include HyperIterator::EachBang
Hash.include HyperIterator::EachBang
Array.include HyperIterator

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hyper_iterator-0.3.1 lib/hyper_iterator.rb