diff options
author | Jeremy Evans <[email protected]> | 2019-09-25 15:32:35 -0700 |
---|---|---|
committer | Jeremy Evans <[email protected]> | 2019-09-26 08:01:53 -0700 |
commit | 47d44510a3f5c6cfca69b3fc05d7f5f35b1b2784 () | |
tree | 666a48379946b14033f92449f91c493fa4d62836 /ext/pathname/pathname.c | |
parent | 3959469f240edb6c1f43976bbb72a0ba9105a6b1 (diff) |
Fix more keyword argument separation issues in Pathname
Notes: Merged: https://.com/ruby/ruby/pull/2484
-rw-r--r-- | ext/pathname/pathname.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -434,7 +434,7 @@ path_write(int argc, VALUE *argv, VALUE self) args[0] = get_strpath(self); n = rb_scan_args(argc, argv, "03", &args[1], &args[2], &args[3]); - return rb_funcallv(rb_cFile, id_write, 1+n, args); } /* @@ -455,7 +455,7 @@ path_binwrite(int argc, VALUE *argv, VALUE self) args[0] = get_strpath(self); n = rb_scan_args(argc, argv, "03", &args[1], &args[2], &args[3]); - return rb_funcallv(rb_cFile, id_binwrite, 1+n, args); } /* @@ -477,7 +477,7 @@ path_readlines(int argc, VALUE *argv, VALUE self) args[0] = get_strpath(self); n = rb_scan_args(argc, argv, "03", &args[1], &args[2], &args[3]); - return rb_funcallv(rb_cFile, id_readlines, 1+n, args); } /* @@ -678,10 +678,10 @@ path_open(int argc, VALUE *argv, VALUE self) args[0] = get_strpath(self); n = rb_scan_args(argc, argv, "03", &args[1], &args[2], &args[3]); if (rb_block_given_p()) { - return rb_block_call(rb_cFile, id_open, 1+n, args, 0, 0); } else { - return rb_funcallv(rb_cFile, id_open, 1+n, args); } } |