Method: Pathname#binread
- Defined in:
- pathname.c
#binread([length [, offset]]) ⇒ String
Returns all the bytes from the file, or the first N if specified.
See File.binread.
375 376 377 378 379 380 381 382 383 384 |
# File 'pathname.c', line 375
static VALUE
path_binread(int argc, VALUE *argv, VALUE self)
{
VALUE args[3];
int n;
args[0] = get_strpath(self);
n = rb_scan_args(argc, argv, "02", &args[1], &args[2]);
return rb_funcallv(rb_cFile, id_binread, 1+n, args);
}
|