vendor/bundle/ruby/2.6.0/gems/rubocop-ast-1.18.0/lib/rubocop/ast/node/if_node.rb
def nested_conditional?
        node_parts[1..2].compact.each do |branch|
          branch.each_node(:if) do |nested|
            return true unless nested.elsif?
          end
        end

        false
      end
# Chacks whether the `if` node has nested `if` nodes in any of its
# branches.
#
# @note This performs a shallow search.
#
# @return [Boolean] whether the `if` node contains nested conditionals
Chacks whether the `if` node has nested `if` nodes in any of its
branches.
Chacks whether the ` if ` node has nested ` if ` nodes in any of its branches .
def nested_conditional?
        node_parts[1..2].compact.each do |branch|
          branch.each_node(:if) do |nested|
            return true unless nested.elsif?
          end
        end
        false
      end
def nested_conditional? node_parts [ 1 .. 2 ] . compact . each do | branch | branch . each_node ( :if ) do | nested | return true unless nested . elsif? end end false end
Chacks whether the `if` node has nested `if` nodes in any of its
branches.
Chacks whether the ` if ` node has nested ` if ` nodes in any of its branches .
whether the `if` node contains nested conditionals
whether the ` if ` node contains nested conditionals
Boolean
note
This performs a shallow search.
This performs a shallow search .