End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
IO#binmode?
ios.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 fptr->mode & FMODE_BINMODE ? Qtrue : Qfalse;
}
Returns true if ios is binmode.
See also
#binmode
#check_winsize_changed
#beep
#clear_screen
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1