In Files

  • mrbgems/mruby-method/mrblib/method.rb

Parent

Methods

Method

Public Instance Methods

<<(other) click to toggle source
 
               # File mrbgems/mruby-method/mrblib/method.rb, line 9
def <<(other)
  ->(*args, &block) { call(other.call(*args, &block)) }
end
            
>>(other) click to toggle source
 
               # File mrbgems/mruby-method/mrblib/method.rb, line 13
def >>(other)
  ->(*args, &block) { other.call(call(*args, &block)) }
end
            
to_proc() click to toggle source
 
               # File mrbgems/mruby-method/mrblib/method.rb, line 2
def to_proc
  m = self
  lambda { |*args, &b|
    m.call(*args, &b)
  }
end