lib/spank/lambda_behaviours.rb in spank-0.0.1385937112 vs lib/spank/lambda_behaviours.rb in spank-0.0.1393558686
- old
+ new
@@ -1,7 +1,7 @@
module Spank
module LambdaBehaviours
def memoize(lambda_method)
- lambda { |container| @cache ||= lambda_method.call(container) }
+ lambda { |*args| @cache ||= lambda_method.call(*args) }
end
end
end