module Reek::AST::SexpExtensions::CaseNode
Utility methods for :case nodes.
Public Instance Methods
Source
# File lib/reek/ast/sexp_extensions/case.rb, line 12 def body_nodes(type, ignoring = []) children[1..].compact.flat_map do |child| child.each_node(type, ignoring | type).to_a end end
Source
# File lib/reek/ast/sexp_extensions/case.rb, line 8 def condition children.first end
Source
# File lib/reek/ast/sexp_extensions/case.rb, line 18 def else_body children.last end