method

eof?

ruby latest stable - Class: StringIO
eof?()
public

Returns true if strio is at end of file. The stringio must be opened for reading or an IOError will be raised.