Method: Path#each_line

Defined in:
lib/path/io.rb

#each_line(*args) {|line| ... } ⇒ Object Also known as: lines

Iterates over the lines in the file. See IO.foreach.

Yield Parameters:

  • line (String)


12
13
14
# File 'lib/path/io.rb', line 12

def each_line(*args, &block)
  IO.foreach(@path, *args, &block)
end