| Server IP : 162.214.74.102 / Your IP : 216.73.217.46 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/String/ |
Upload File : |
U:RDoc::AnyMethod[iI"each_line:ETI"String#each_line;TF:publico:RDoc::Markup::Document:@parts[
o:RDoc::Markup::Paragraph; [
I"BSplits <i>str</i> using the supplied parameter as the record ;TI"Gseparator (<code>$/</code> 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::BlankLine o;
; [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"<em>produces:</em>;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