str.each_line(separator=$/) {|substr| block } â strstr.each_line(separator=$/) â an_enumerator
Instance Public methods
Splits str using the supplied parameter as the record separator
($/ by default), passing each substring in turn to the
supplied block. If a zero-length record separator is supplied, the string
is split into paragraphs delimited by multiple successive newlines.
If no block is given, an enumerator is returned instead.
print "Example one\n"
"he