Module: Reek::AST::SexpExtensions::LogicOperatorBase Private
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
- #body_nodes(type, ignoring = []) ⇒ Object private
- #condition ⇒ Object private
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 |
#condition ⇒ 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.
124 |
# File 'lib/reek/ast/sexp_extensions.rb', line 124 def condition() self[1] end |