eof?()
public
Returns true if strio is at end of file. The stringio must be opened
for reading or an IOError will be
raised.
Show source
static VALUE
strio_eof(VALUE self)
{
struct StringIO *ptr = readable(self);
if (ptr->pos < RSTRING_LEN(ptr->string)) return Qfalse;
return Qtrue;
}