each_line

pathname.each_line {|line| ... }
pathname.each_line(sep=$/ [, open_args]) {|line| block } â nil
pathname.each_line(limit [, open_args]) {|line| block } â nil
pathname.each_line(sep, limit [, open_args]) {|line| block } â nil
pathname.each_line(...) â an_enumerator
Instance Public methods

Iterates over each line in the file and yields a String object for each.

doc_ruby_on_rails
2015-04-27 18:40:31
Comments
Leave a Comment

Please login to continue.