class RuboCop::AST::IfNode

def elsif_conditional?

Returns:
  • (Boolean) - whether the `if` node has at least one `elsif` branch
def elsif_conditional?
  else_branch&.if_type? && else_branch.elsif?
end