module Reek::AST::SexpExtensions::ConstNode
Utility methods for :const nodes.
Public Instance Methods
Source
# File lib/reek/ast/sexp_extensions/constant.rb, line 9 def name if namespace "#{namespace.format_to_ruby}::#{simple_name}" else simple_name.to_s end end
TODO: name -> full_name, simple_name
-> name
Source
# File lib/reek/ast/sexp_extensions/constant.rb, line 21 def namespace children.first end
Source
# File lib/reek/ast/sexp_extensions/constant.rb, line 17 def simple_name children.last end