Method: StringIO#bytes
- Defined in:
- stringio.c
#bytes ⇒ Object
This is a deprecated alias for #each_byte.
653 654 655 656 657 658 659 660 |
# File 'stringio.c', line 653
static VALUE
strio_bytes(VALUE self)
{
rb_warn("StringIO#bytes is deprecated; use #each_byte instead");
if (!rb_block_given_p())
return rb_enumeratorize(self, ID2SYM(rb_intern("each_byte")), 0, 0);
return strio_each_byte(self);
}
|