Ruby latest stable (v2_5_5) - 0 notes - Class: ARGF
gets(*args) public

Returns the next line from the current file in ARGF.

By default lines are assumed to be separated by $/; to use a different character as a separator, supply it as a String for the sep argument.

The optional limit argument specifies how many characters of each line to return. By default all characters are returned.

See IO.readlines for details about getline_args.

Show source
Register or log in to add new notes.