Class: Analyst::Entities::Module

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

Instance Attribute Summary

Attributes inherited from Entity

#ast, #parent

Instance Method Summary collapse

Methods included from HasMethods

#all_methods, #cmethods, #imethods, #singleton_class_blocks

Methods inherited from Entity

#classes, #conditionals, #constant_assignments, #constants, #file_path, handles_node, #hashes, #initialize, #inspect, #line_number, #location, #method_calls, #methods, #modules, process, #source, #strings, #top_level_classes, #top_level_constant_assignments, #top_level_constants, #top_level_modules, #variables

Constructor Details

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

Instance Method Details

#full_nameObject



17
18
19
# File 'lib/analyst/entities/module.rb', line 17

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

#kindObject



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

def kind
  "Module"
end

#nameObject



13
14
15
# File 'lib/analyst/entities/module.rb', line 13

def name
  name_entity.name
end