Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
IO::generic_readable#readbyte
readbyte → byte
ext/stringio/stringio.c
View on GitHub ↗
static VALUE
strio_readbyte(VALUE self)
{
VALUE c = rb_funcallv(self, rb_intern("getbyte"), 0, 0);
if (NIL_P(c)) rb_eof_error();
return c;
}
Like getbyte, but raises an exception if already at end-of-stream; see Byte IO.