Method: StringIO#rewind
- Defined in:
- ext/stringio/stringio.c
#rewind ⇒ 0
Sets the current position and line number to zero; see Position and Line Number.
768 769 770 771 772 773 774 775 |
# File 'ext/stringio/stringio.c', line 768 static VALUE strio_rewind(VALUE self) { struct StringIO *ptr = StringIO(self); ptr->pos = 0; ptr->lineno = 0; return INT2FIX(0); } |