lib/lambda_driver/revapply.rb in lambda_driver-1.1.0 vs lib/lambda_driver/revapply.rb in lambda_driver-1.1.1
- old
+ new
@@ -1,8 +1,8 @@
module LambdaDriver::Revapply
def revapply(f = nil, &block)
if f.nil? && (not block_given?)
- return lambda{|g=nil,&inner_block| self.revapply(g, &inner_block) }
+ return self.method(:revapply)
end
block_given? ? (yield self) : f.call(self)
end
end