Class: IO

Inherits:
Object show all
Defined in:
lib/framework/builtinME.rb

Instance Method Summary collapse

Instance Method Details

#eachObject Also known as: each_line



326
327
328
329
330
331
332
333
# File 'lib/framework/builtinME.rb', line 326

def each
    while !eof
      str = gets
      str.chomp! if str
      yield str
    end
    close
end