Module: Reek::AST::SexpExtensions::BlockNode 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 :block nodes.
Instance Method Summary collapse
- #args ⇒ Object private
- #block ⇒ Object private
- #call ⇒ Object private
- #parameter_names ⇒ Object private
- #parameters ⇒ Object private
Instance Method Details
#args ⇒ 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.
309 |
# File 'lib/reek/ast/sexp_extensions.rb', line 309 def args() self[2] end |
#block ⇒ 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.
310 |
# File 'lib/reek/ast/sexp_extensions.rb', line 310 def block() self[3] end |
#call ⇒ 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.
308 |
# File 'lib/reek/ast/sexp_extensions.rb', line 308 def call() self[1] end |
#parameter_names ⇒ 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.
313 314 315 |
# File 'lib/reek/ast/sexp_extensions.rb', line 313 def parameter_names parameters[1..-1].to_a end |
#parameters ⇒ 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.
311 |
# File 'lib/reek/ast/sexp_extensions.rb', line 311 def parameters() self[2] || [] end |