Method: Sequence#each

Defined in:
lib/sequence.rb

#eachObject

Performs each just to make this class Enumerable. self is returned (or the break value if the code does a break).



712
713
714
715
716
717
718
719
# File 'lib/sequence.rb', line 712

def each # :yield: value
  holding {
    begin!
    until eof?
      yield read1
    end or self
  }
end