class RuboCop::AST::OrNode
to all ‘or` nodes within RuboCop.
node when the builder constructs the AST, making its methods available
A node extension for `or` nodes. This will be used in place of a plain
def alternate_operator
-
(String)
- the alternate of the `or` operator
def alternate_operator logical_operator? ? SEMANTIC_OR : LOGICAL_OR end
def inverse_operator
-
(String)
- the inverse of the `or` operator
def inverse_operator logical_operator? ? LOGICAL_AND : SEMANTIC_AND end