module Clowne::Ext::LambdaAsProc

Add to_proc method for lambda

Public Instance Methods

to_proc() click to toggle source
# File lib/clowne/ext/lambda_as_proc.rb, line 8
def to_proc
  return self unless lambda?

  this = self
  proc { |*args| this.call(*args.take(this.arity)) }
end