Project

General

Profile

Feature #5678 ยป stringio.patch

MartinBosslet (Martin Bosslet), 11/28/2011 09:52 AM

View differences:

ext/stringio/stringio.c (working copy)
1423 1423
    rb_define_method(StringIO, "reopen", strio_reopen, -1);
1424 1424

  
1425 1425
    rb_define_method(StringIO, "string", strio_get_string, 0);
1426
    rb_define_alias(StringIO, "to_str", "string");
1426 1427
    rb_define_method(StringIO, "string=", strio_set_string, 1);
1427 1428
    rb_define_method(StringIO, "lineno", strio_get_lineno, 0);
1428 1429
    rb_define_method(StringIO, "lineno=", strio_set_lineno, 1);