Module: Reek::AST::SexpExtensions::WhenNode Private

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

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Utility methods for :when nodes.

Instance Method Summary collapse

Instance Method Details

#bodyObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



165
166
167
# File 'lib/reek/ast/sexp_extensions.rb', line 165

def body
  children.last
end

#condition_listObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



161
162
163
# File 'lib/reek/ast/sexp_extensions.rb', line 161

def condition_list
  children[0..-2]
end