Module: Waves::Utilities::Proc

Included in:
Proc
Defined in:
lib/utilities/proc.rb

Instance Method Summary collapse

Instance Method Details

#|(lambda) ⇒ Object

calls the given lambda with the receiver as its argument



5
6
7
8
9
# File 'lib/utilities/proc.rb', line 5

def |(lambda)
  lambda do
    lambda.call( self.call )
  end
end