This cop checks for use of the lambda.(args) syntax.
@example
# bad lambda.(x, y) # good lambda.call(x, y)
# File lib/rubocop/cop/style/lambda_call.rb, line 17 def on_send(node) _receiver, selector, = *node # we care only about `call` methods return unless selector == :call if offense?(node) add_offense(node, :expression) { opposite_style_detected } else correct_style_detected end end
Generated with the Darkfish Rdoc Generator 2.