Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
IO#binmode?
binmode? → true or false
io.c
View on GitHub ↗
static VALUE
rb_io_binmode_p(VALUE io)
{
rb_io_t *fptr;
GetOpenFile(io, fptr);
return RBOOL(fptr->mode & FMODE_BINMODE);
}
Returns true if the stream is on binary mode, false otherwise. See Data Mode.
See also
#binmode
#check_winsize_changed
#beep
#clear_screen
also in
4.1 · 4.0 · 3.4 · 3.2 · 3.1 · 3.0