module MPatch::Include::Proc
Public Instance Methods
*(other)
click to toggle source
sugar syntax for proc * operator
a = ->(x){x+1} b = ->(x){x*10} c = b*a c.call(1) #=> 20
# File lib/mpatch/proc.rb, line 12 def *(other) self.class.new { |*args| self[*other[*args]] } end