summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-method/mrblib/method.rb
diff options
context:
space:
mode:
Diffstat (limited to 'mrbgems/mruby-method/mrblib/method.rb')
-rw-r--r--mrbgems/mruby-method/mrblib/method.rb8
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