⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.133
Server IP:
185.119.109.197
Server:
Linux managedhosting.chostar.me 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
3.0.0
/
system
/
String
/
View File Name :
each_line-i.ri
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::BlankLine o; ; [I"LIf +chomp+ is +true+, +separator+ will be removed from the end of each ;TI" line.;T@o; ; [I"=If no block is given, an enumerator is returned instead.;T@o:RDoc::Markup::Verbatim; [!I"("hello\nworld".each_line {|s| p s} ;TI"# prints: ;TI"# "hello\n" ;TI"# "world" ;TI" ;TI"-"hello\nworld".each_line('l') {|s| p s} ;TI"# prints: ;TI"# "hel" ;TI" # "l" ;TI"# "o\nworl" ;TI" # "d" ;TI" ;TI"0"hello\n\n\nworld".each_line('') {|s| p s} ;TI"# prints ;TI"# "hello\n\n" ;TI"# "world" ;TI" ;TI"5"hello\nworld".each_line(chomp: true) {|s| p s} ;TI"# prints: ;TI"# "hello" ;TI"# "world" ;TI" ;TI":"hello\nworld".each_line('l', chomp: true) {|s| p s} ;TI"# prints: ;TI"# "he" ;TI"# "" ;TI"# "o\nwor" ;TI"# "d";T:@format0: @fileI" string.c;T:0@omit_headings_from_table_of_contents_below0I"str.each_line(separator=$/, chomp: false) {|substr| block } -> str str.each_line(separator=$/, chomp: false) -> an_enumerator ;T0[ I"(*args);T@8FI"String;TcRDoc::NormalClass00