Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby21
/
share
/
ri
/
2.1.0
/
system
/
IO
/
//opt/alt/ruby21/share/ri/2.1.0/system/IO/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"B<i>sep</i>. A separator of <code>nil</code> 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"FThe stream must be opened for reading or an <code>IOError</code> ;TI"Iwill be raised. The line read in will be returned and also assigned ;TI"Fto <code>$_</code>. Returns <code>nil</code> if called at end of ;TI"Dfile. If the first argument is an integer, or optional second ;TI"Jargument is given, the returning string would not be longer than the ;TI"given value in bytes.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I":File.new("testfile").gets #=> "This is line one\n" ;TI"9$_ #=> "This is line one\n";T:@format0: @fileI" io.c;T:0@omit_headings_from_table_of_contents_below0I"wios.gets(sep=$/) -> string or nil ios.gets(limit) -> string or nil ios.gets(sep, limit) -> string or nil ;T0[ I"(*args);T@FI"IO;TcRDoc::NormalClass00