method

to_a

Importance_1
v2_1_10 - Show latest stable - 0 notes - Class: ARGF
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.