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
/
ruby27
/
share
/
ri
/
system
/
IO
/
//opt/alt/ruby27/share/ri/system/IO/readlines-c.ri
U:RDoc::AnyMethod[iI"readlines:ETI"IO::readlines;TT:privateo:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"BReads the entire file specified by <i>name</i> as individual ;TI"Hlines, and returns those lines in an array. Lines are separated by ;TI"<i>sep</i>.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [ I""a = IO.readlines("testfile") ;TI"%a[0] #=> "This is line one\n" ;TI" ;TI"/b = IO.readlines("testfile", chomp: true) ;TI"#b[0] #=> "This is line one" ;T:@format0o; ; [I"GIf the last argument is a hash, it's the keyword argument to open.;T@S:RDoc::Markup::Heading: leveli: textI"Options for getline;T@o; ; [I"1The options hash accepts the following keys:;T@o:RDoc::Markup::List: @type: NOTE:@items[o:RDoc::Markup::ListItem:@label[I":chomp;T; [o; ; [I"BWhen the optional +chomp+ keyword argument has a true value, ;TI"=<code>\n</code>, <code>\r</code>, and <code>\r\n</code> ;TI"/will be removed from the end of each line.;T@o; ; [I"2See also IO.read for details about open_args.;T: @fileI" io.c;T:0@omit_headings_from_table_of_contents_below0I"�IO.readlines(name, sep=$/ [, getline_args, open_args]) -> array IO.readlines(name, limit [, getline_args, open_args]) -> array IO.readlines(name, sep, limit [, getline_args, open_args]) -> array ;T0[ I"-(p1, p2 = v2, p3 = v3, p4 = v4, p5 = {});T@.FI"IO;TcRDoc::NormalClass00