class FakeFS::Pathname
def each_line(*args, &block) # :yield: line
This method has existed since 1.8.1.
It yields a String object for each line.
#each_line iterates over the line in the file.
* IO *
Pathname class
def each_line(*args, &block) # :yield: line if block_given? File.open(@path, 'r') do |io| io.each_line(*args, &block) end else enum_for(:each_line, *args) end end