module Flextures::Dumper::ProcEx
Public Instance Methods
*(other)
click to toggle source
compose function
# File lib/flextures/flextures_dumper.rb, line 9 def *(other) if self.lambda? and other.lambda? lambda { |*x| other.call(self.call(*x)) } elsif not self.lambda? and not other.lambda? Proc.new {|*x| other.call(self.call(*x)) } else raise ArgumentError, "lambda/Proc type mismatch" end end