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
- #body ⇒ Object private
- #condition_list ⇒ Object private
Instance Method Details
#body ⇒ Object
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_list ⇒ Object
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 |