module RuboCop::AST::PredicateOperatorNode

def logical_operator?

Returns:
  • (Boolean) - whether this is a logical operator
def logical_operator?
  operator == LOGICAL_AND || operator == LOGICAL_OR
end

def operator

Returns:
  • (String) - the operator
def operator
  loc.operator.source
end

def semantic_operator?

Returns:
  • (Boolean) - whether this is a semantic operator
def semantic_operator?
  operator == SEMANTIC_AND || operator == SEMANTIC_OR
end