module HyperIterator::EachBang

Public Instance Methods

each!() { |shift| ... } click to toggle source
# File lib/iterators/each_bang.rb, line 3
def each!
  while count > 0
    yield shift
  end
  nil
end