gets(...)
public
See <a href="/ruby/IO/gets">IO#gets</a>.
Show source
/*
* call-seq:
* strio.gets(sep_string=$/) -> string or nil
*
* See IO
*/
static VALUE
strio_gets(argc, argv, self)
int argc;
VALUE *argv;
VALUE self;
{
VALUE str = strio_getline(argc, argv, readable(StringIO(self)));
rb_lastline_set(str);
return str;
}