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

Instance Method Details

#arg_namesObject

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

#argsObject

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_nameObject

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

#participantsObject

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

#receiverObject

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