Module: Reek::AST::SexpExtensions::LogicOperatorBase Private

Included in:
AndNode, OrNode
Defined in:
lib/reek/ast/sexp_extensions.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Base module for utility methods for :and and :or nodes.

Instance Method Summary collapse

Instance Method Details

#body_nodes(type, ignoring = []) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



126
127
128
# File 'lib/reek/ast/sexp_extensions.rb', line 126

def body_nodes(type, ignoring = [])
  self[2].find_nodes type, ignoring
end

#conditionObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



124
# File 'lib/reek/ast/sexp_extensions.rb', line 124

def condition() self[1] end