diff options
| author | dearblue <[email protected]> | 2021-11-24 23:35:42 +0900 |
|---|---|---|
| committer | dearblue <[email protected]> | 2021-11-24 23:35:42 +0900 |
| commit | 16e388863afef7616c7272d779f8cb7abc478992 (patch) | |
| tree | ef93a007a11e728118f01432c16c71506c336241 /mrbgems/mruby-method/mrblib/method.rb | |
| parent | d6e1114f71927e34bda05544d548edaa411f583f (diff) | |
| download | mruby-16e388863afef7616c7272d779f8cb7abc478992.tar.gz mruby-16e388863afef7616c7272d779f8cb7abc478992.zip | |
Fixed some methods where keyword arguments are not passed
Diffstat (limited to 'mrbgems/mruby-method/mrblib/method.rb')
| -rw-r--r-- | mrbgems/mruby-method/mrblib/method.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mrbgems/mruby-method/mrblib/method.rb b/mrbgems/mruby-method/mrblib/method.rb index 56af7cf61..09b611eb7 100644 --- a/mrbgems/mruby-method/mrblib/method.rb +++ b/mrbgems/mruby-method/mrblib/method.rb @@ -1,16 +1,16 @@ class Method def to_proc m = self - lambda { |*args, &b| - m.call(*args, &b) + lambda { |*args, **opts, &b| + m.call(*args, **opts, &b) } end def <<(other) - ->(*args, &block) { call(other.call(*args, &block)) } + ->(*args, **opts, &block) { call(other.call(*args, **opts, &block)) } end def >>(other) - ->(*args, &block) { other.call(call(*args, &block)) } + ->(*args, **opts, &block) { other.call(call(*args, **opts, &block)) } end end |
