Module: Reek::Source::SexpExtensions::LogicOperatorBase

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

Overview

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

Instance Method Summary collapse

Instance Method Details

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


94
95
96
# File 'lib/reek/source/sexp_extensions.rb', line 94

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

#conditionObject


92
# File 'lib/reek/source/sexp_extensions.rb', line 92

def condition() self[1] end