From 16e388863afef7616c7272d779f8cb7abc478992 Mon Sep 17 00:00:00 2001 From: dearblue Date: Wed, 24 Nov 2021 23:35:42 +0900 Subject: Fixed some methods where keyword arguments are not passed --- mrbgems/mruby-method/mrblib/method.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mrbgems/mruby-method/mrblib/method.rb') 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 -- cgit v1.2.3