Module: Reek::AST::SexpExtensions::ModuleNode Private
- Included in:
- ClassNode
- 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 :module nodes.
Instance Method Summary collapse
- #full_name(outer) ⇒ Object private
- #name ⇒ Object private
- #simple_name ⇒ Object private
- #text_name ⇒ Object private
Instance Method Details
#full_name(outer) ⇒ Object
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.
338 339 340 341 |
# File 'lib/reek/ast/sexp_extensions.rb', line 338 def full_name(outer) prefix = outer == '' ? '' : "#{outer}::" "#{prefix}#{text_name}" end |
#name ⇒ Object
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.
332 |
# File 'lib/reek/ast/sexp_extensions.rb', line 332 def name() self[1] end |
#simple_name ⇒ Object
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.
334 335 336 |
# File 'lib/reek/ast/sexp_extensions.rb', line 334 def simple_name name.is_a?(::Parser::AST::Node) ? name.simple_name : name end |
#text_name ⇒ Object
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.
343 344 345 |
# File 'lib/reek/ast/sexp_extensions.rb', line 343 def text_name SexpFormatter.format(name) end |