module Reek::AST::SexpExtensions::LogicOperatorBase
Base module for utility methods for :and and :or nodes.
Public Instance Methods
Source
# File lib/reek/ast/sexp_extensions/logical_operators.rb, line 12 def body_nodes(type, ignoring = []) children[1].each_node type, (ignoring | type) end
Source
# File lib/reek/ast/sexp_extensions/logical_operators.rb, line 8 def condition children.first end