Method: Iodine::Base::RackIO#rewind
- Defined in:
- ext/iodine/iodine_rack_io.c
#rewind ⇒ Object
IO methods
84 85 86 87 88 89 90 |
# File 'ext/iodine/iodine_rack_io.c', line 84
static VALUE rio_rewind(VALUE self) {
FIOBJ io = get_data(self);
if (!FIOBJ_TYPE_IS(io, FIOBJ_T_DATA))
return Qnil;
fiobj_data_seek(io, 0);
return INT2NUM(0);
}
|