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

Instance Method Details

#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.



309
# File 'lib/reek/ast/sexp_extensions.rb', line 309

def args() self[2] end

#blockObject

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

#callObject

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_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.



313
314
315
# File 'lib/reek/ast/sexp_extensions.rb', line 313

def parameter_names
  parameters[1..-1].to_a
end

#parametersObject

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