Module: ImproveYourCode::AST::SexpExtensions::ConstantDefiningNodeBase

Included in:
CasgnNode, ModuleNodeBase
Defined in:
lib/improve_your_code/ast/sexp_extensions/module.rb

Instance Method Summary collapse

Instance Method Details

#full_name(outer) ⇒ Object



7
8
9
# File 'lib/improve_your_code/ast/sexp_extensions/module.rb', line 7

def full_name(outer)
  [outer, name].reject(&:empty?).join('::')
end

#simple_nameObject



11
12
13
# File 'lib/improve_your_code/ast/sexp_extensions/module.rb', line 11

def simple_name
  name.split('::').last
end