Module: Reek::AST::SexpExtensions::SendNode 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 :send nodes.
Instance Method Summary collapse
- #arg_names ⇒ Object private
- #args ⇒ Object private
- #method_name ⇒ Object private
- #participants ⇒ Object private
- #receiver ⇒ Object private
Instance Method Details
#arg_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.
180 181 182 |
# File 'lib/reek/ast/sexp_extensions.rb', line 180 def arg_names args.map { |arg| arg[1] } end |
#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.
174 |
# File 'lib/reek/ast/sexp_extensions.rb', line 174 def args() self[3..-1] end |
#method_name ⇒ 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.
173 |
# File 'lib/reek/ast/sexp_extensions.rb', line 173 def method_name() self[2] end |
#participants ⇒ 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.
176 177 178 |
# File 'lib/reek/ast/sexp_extensions.rb', line 176 def participants ([receiver] + args).compact end |
#receiver ⇒ 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.
172 |
# File 'lib/reek/ast/sexp_extensions.rb', line 172 def receiver() self[1] end |