APIdock / Ruby
/
method

binwrite

ruby latest stable - Class: Pathname
binwrite(p1 = v1, p2 = v2, p3 = v3)
public

Writes contents to the file, opening it in binary mode.

See IO.binwrite.

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(rb_cIO, id_binwrite, 1+n, args);
}

AltStyle によって変換されたページ (->オリジナル) /