Method: StringIO#eof?
- Defined in:
- ext/stringio/stringio.c
#eof? ⇒ Boolean
Returns true if positioned at end-of-stream, false otherwise; see Position.
Raises IOError if the stream is not opened for reading.
610 611 612 613 614 615 |
# File 'ext/stringio/stringio.c', line 610
static VALUE
strio_eof(VALUE self)
{
if (strio_to_read(self)) return Qfalse;
return Qtrue;
}
|