Module: Reek::Source::SexpExtensions::DefsNode

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

Instance Method Summary collapse

Methods included from MethodNodeBase

#arg_names, #arguments, #body_nodes, #ends_with_bang?, #name_without_bang, #parameter_names, #parameters

Instance Method Details

#argslistObject


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

def argslist() self[3] end

#bodyObject


234
235
236
# File 'lib/reek/source/sexp_extensions.rb', line 234

def body
  self[4]
end

#full_name(outer) ⇒ Object


239
240
241
242
# File 'lib/reek/source/sexp_extensions.rb', line 239

def full_name(outer)
  prefix = outer == '' ? '' : "#{outer}#"
  "#{prefix}#{SexpNode.format(receiver)}.#{name}"
end

#nameObject


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

def name() self[2] end

#receiverObject


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

def receiver() self[1] end