vendor/bundle/ruby/2.6.0/gems/rubocop-ast-1.18.0/lib/rubocop/ast/node/if_node.rb
# Custom destructuring method. This is used to normalize the branches
# for `if` and `unless` nodes, to aid comparisons and conversions.
#
# @return [Array<Node>] the different parts of the `if` statement
Custom destructuring method. This is used to normalize the branches
for `if` and `unless` nodes, to aid comparisons and conversions.
Custom destructuring method . This is used to normalize the branches for ` if ` and ` unless ` nodes to aid comparisons and conversions .
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
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
Custom destructuring method.
Custom destructuring method .
the different parts of the `if` statement
the different parts of the ` if ` statement
Array<Node>