class RuboCop::AST::IfNode

def ternary?

Returns:
  • (Boolean) - whether the `if` node is a ternary operator
def ternary?
  loc.respond_to?(:question)
end