class RuboCop::AST::IfNode

def node_parts

Returns:
  • (Array) - the different parts of the `if` statement
def node_parts
  if unless?
    condition, false_branch, true_branch = *self
  else
    condition, true_branch, false_branch = *self
  end
  [condition, true_branch, false_branch]
end