Method: IO#binmode
- Defined in:
- io.c
#binmode ⇒ self
Sets the stream’s data mode as binary (see Data Mode).
A stream’s data mode may not be changed from binary to text.
6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 |
# File 'io.c', line 6405 static VALUE rb_io_binmode_m(VALUE io) { VALUE write_io; rb_io_ascii8bit_binmode(io); write_io = GetWriteIO(io); if (write_io != io) rb_io_ascii8bit_binmode(write_io); return io; } |