Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
StringIO#sync=
(::boolish) -> bool
sync=(p1)
ext/stringio/stringio.c
View on GitHub ↗
static VALUE
strio_first(VALUE self, VALUE arg)
{
StringIOForRead(self);
return arg;
}
Returns the argument unchanged. Just for compatibility to IO.