ARGF.each_line(sep=$/) {|line| block } â ARGFARGF.each_line(sep=$/,limit) {|line| block } â ARGFARGF.each_line(...) â an_enumerator
Instance Public methods
Returns an enumerator which iterates over each line (separated by
sep, which defaults to your platform's newline character) of
each file in ARGV. If a block is supplied, each line in turn
will be yielded to the block, otherwise an enumerator is returned. The
optional limit argument is a Fixnum s