Class: Gsf::InputTextline

Inherits:
Input
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Methods inherited from Input

#container, #container=, #copy, #dump, #dup, #eof, #eof=, #eof?, error_id, #find_vba, #modtime, #modtime=, #modtime_from_stat=, #name, #name=, #name_from_filename=, #position, #position=, #read, #read0, #read_raw, #remaining, #remaining=, #seek, #seek_emulate, #sibling, #size, #size=, #tell, #uncompress

Constructor Details

#initialize(source) ⇒ Gsf::Input

This adds a reference to source.

Parameters:

  • source (Gsf::Input)

    in some combination of ascii and utf8

Instance Method Details

#ascii_getsArray<Integer>

A utility routine to read things line by line from the underlying source. Trailing newlines and carriage returns are stripped, and the resultant buffer can be edited.

Returns:

  • (Array<Integer>)

    the string read, or nil on eof.

#utf8_getsArray<Integer>

A utility routine to read things line by line from the underlying source. Trailing newlines and carriage returns are stripped, and the resultant buffer can be edited.

Returns:

  • (Array<Integer>)

    the string read, or nil on eof.