readlines(*args)
public
Returns an array containing the lines returned by calling Kernel.gets(sep)
until the end of file.
Show source
static VALUE
rb_f_readlines(int argc, VALUE *argv, VALUE recv)
{
if (recv == argf) {
return argf_readlines(argc, argv, argf);
}
return rb_funcallv(argf, rb_intern("readlines"), argc, argv);
}