U:RDoc::AnyMethod[iI"each_line:ETI"String#each_line;TF: publico:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [ I"BSplits str using the supplied parameter as the record ;TI"Gseparator ($/ by default), passing each substring in ;TI"Gturn to the supplied block. If a zero-length record separator is ;TI"@supplied, the string is split into paragraphs delimited by ;TI""multiple successive newlines.;To:RDoc::Markup::BlankLineo; ; [I"=If no block is given, an enumerator is returned instead.;T@o:RDoc::Markup::Verbatim; [ I"print "Example one\n" ;TI"("hello\nworld".each_line {|s| p s} ;TI"print "Example two\n" ;TI"-"hello\nworld".each_line('l') {|s| p s} ;TI"print "Example three\n" ;TI"0"hello\n\n\nworld".each_line('') {|s| p s} ;T: @format0o; ; [I"produces:;T@o; ; [I"Example one ;TI""hello\n" ;TI" "world" ;TI"Example two ;TI" "hel" ;TI" "l" ;TI""o\nworl" ;TI" "d" ;TI"Example three ;TI""hello\n\n\n" ;TI" "world";T; 0: @fileI" string.c;T:0@omit_headings_from_table_of_contents_below0I"}str.each_line(separator=$/) {|substr| block } -> str str.each_line(separator=$/) -> an_enumerator ;T0[I" (*args);T@.FI" String;TcRDoc::NormalClassI" scanf;T0