Module: Reek::Source::SexpExtensions::WhenNode

Defined in:
lib/reek/source/sexp_extensions.rb

Overview

Utility methods for :when nodes

Instance Method Summary collapse

Instance Method Details

#bodyObject


132
133
134
# File 'lib/reek/source/sexp_extensions.rb', line 132

def body
  children.last
end

#condition_listObject


128
129
130
# File 'lib/reek/source/sexp_extensions.rb', line 128

def condition_list
  children[0..-2]
end