--- !ruby/object:RI::MethodDescription
aliases: []
block_params:
comment:
- !ruby/struct:SM::Flow::P
body: Reads all of the lines in ios, and returns them in anArray. Lines are separated by the optional sep_string. If sep_string is nil, the rest of the stream is returned as a single record. The stream must be opened for reading or an IOError will be raised.
- !ruby/struct:SM::Flow::VERB
body: " f = File.new("testfile")\n f.readlines[0] #=> "This is line one\\n"\n"
full_name: IO#readlines
is_singleton: false
name: readlines
params: |
ios.readlines(sep_string=$/) => array
visibility: public