module RuboCop::AST::MethodDispatchNode

def lambda_literal?

Returns:
  • (Boolean) - whether this method is a lambda literal
def lambda_literal?
  block_literal? && loc.expression && loc.expression.source == '->'
end