Method: Pathname#binwrite
- Defined in:
- pathname.c
#binwrite(string, [offset]) ⇒ Fixnum #binwrite(string, [offset], open_args) ⇒ Fixnum
Writes contents to the file, opening it in binary mode.
See File.binwrite.
417 418 419 420 421 422 423 424 425 426 |
# File 'pathname.c', line 417
static VALUE
path_binwrite(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_kw(rb_cFile, id_binwrite, 1+n, args, RB_PASS_CALLED_KEYWORDS);
}
|