class RuboCop::AST::BlockNode

def lambda?

Returns:
  • (Boolean) - whether the `block` literal belongs to a lambda
def lambda?
  send_node.method?(:lambda)
end