method

to_a

Importance_1
to_a(*args) public

Reads ARGF's current file in its entirety, returning an Array of its lines, one line per element. Lines are assumed to be separated by sep.

lines = ARGF.readlines
lines[0]                #=> "This is line one\n"
Show source
Register or log in to add new notes.