class RuboCop::AST::IfNode
def ternary?
-
(Boolean)
- whether the `if` node is a ternary operator
def ternary? loc.respond_to?(:question) end
(Boolean)
- whether the `if` node is a ternary operator
def ternary? loc.respond_to?(:question) end