module Gemmy::Patches::ProcPatch::InstanceMethods::Multiply
(a * b).call(4) #=> 6 (b * a).call(4) #=> 4
Public Instance Methods
*(x)
click to toggle source
# File lib/gemmy/patches/proc_patch.rb, line 55 def *(x) if Integer===x # collect times c = [] x.times{|i| c << call(i)} c else # compose procs lambda{|*a| self[x[*a]]} end end