Method: IO#binmode?
- Defined in:
- io.c
#binmode? ⇒ Boolean
Returns true if the stream is on binary mode, false otherwise. See Data Mode.
6426 6427 6428 6429 6430 6431 6432 |
# File 'io.c', line 6426 static VALUE rb_io_binmode_p(VALUE io) { rb_io_t *fptr; GetOpenFile(io, fptr); return RBOOL(fptr->mode & FMODE_BINMODE); } |