Class: Analyst::Entities::Module

Inherits:
Entity
  • Object
show all
Defined in:
lib/analyst/entities/module.rb

Direct Known Subclasses

Class

Instance Attribute Summary

Attributes inherited from Entity

#parent

Instance Method Summary collapse

Methods inherited from Entity

#classes, #handle_send_node, #initialize, #inspect, #method_calls, #top_level_classes, #top_level_modules

Constructor Details

This class inherits a constructor from Analyst::Entities::Entity

Instance Method Details

#full_nameObject



9
10
11
# File 'lib/analyst/entities/module.rb', line 9

def full_name
  parent.full_name.empty? ? name : parent.full_name + '::' + name
end

#nameObject



5
6
7
# File 'lib/analyst/entities/module.rb', line 5

def name
  const_node_array(name_node).join('::')
end