Module: Reek::Source::SexpExtensions::BlockNode

Defined in:
lib/reek/source/sexp_extensions.rb

Overview

Utility methods for :block nodes.

Instance Method Summary collapse

Instance Method Details

#argsObject


257
# File 'lib/reek/source/sexp_extensions.rb', line 257

def args() self[2] end

#blockObject


258
# File 'lib/reek/source/sexp_extensions.rb', line 258

def block() self[3] end

#callObject


256
# File 'lib/reek/source/sexp_extensions.rb', line 256

def call() self[1] end

#parameter_namesObject


261
262
263
# File 'lib/reek/source/sexp_extensions.rb', line 261

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

#parametersObject


259
# File 'lib/reek/source/sexp_extensions.rb', line 259

def parameters() self[2] || [] end