Module: Reek::AST::SexpExtensions::LogicOperatorBase
Overview
Base module for utility methods for :and and :or nodes.
Instance Method Summary collapse
Instance Method Details
#body_nodes(type, ignoring = []) ⇒ Object
12 13 14 |
# File 'lib/reek/ast/sexp_extensions/logical_operators.rb', line 12 def body_nodes(type, ignoring = []) children[1].each_node type, (ignoring | type) end |
#condition ⇒ Object
8 9 10 |
# File 'lib/reek/ast/sexp_extensions/logical_operators.rb', line 8 def condition children.first end |