lib/io_streams/line/reader.rb in iostreams-1.10.1 vs lib/io_streams/line/reader.rb in iostreams-1.10.2

- old
+ new

@@ -73,11 +73,9 @@ # Iterate over every line in the file/stream passing each line to supplied block in turn. # Returns [Integer] the number of lines read from the file/stream. # Note: # * The line delimiter is _not_ returned. def each - return to_enum(__method__) unless block_given? - line_count = 0 until eof? line = readline unless line.nil? yield(line)