Class: Method
- Defined in:
- ext/enterprise_script_service/mruby/mrbgems/mruby-method/mrblib/method.rb
Instance Method Summary collapse
Instance Method Details
#<<(other) ⇒ Object
9 10 11 |
# File 'ext/enterprise_script_service/mruby/mrbgems/mruby-method/mrblib/method.rb', line 9 def <<(other) ->(*args, &block) { call(other.call(*args, &block)) } end |
#>>(other) ⇒ Object
13 14 15 |
# File 'ext/enterprise_script_service/mruby/mrbgems/mruby-method/mrblib/method.rb', line 13 def >>(other) ->(*args, &block) { other.call(call(*args, &block)) } end |
#to_proc ⇒ Object
2 3 4 5 6 7 |
# File 'ext/enterprise_script_service/mruby/mrbgems/mruby-method/mrblib/method.rb', line 2 def to_proc m = self lambda { |*args, &b| m.call(*args, &b) } end |