read(p1 = v1, p2 = v2, p3 = v3)
public
Returns all data from the file, or the first N bytes if specified.
See IO.read.
Show source
static VALUE
path_read(int argc, VALUE *argv, VALUE self)
{
VALUE args[4];
int n;
args[0] = get_strpath(self);
n = rb_scan_args(argc, argv, "03", &args[1], &args[2], &args[3]);
return rb_funcallv(rb_cIO, id_read, 1+n, args);
}