Class: Analyst::Entities::ClassMethod
- Inherits:
-
Entity
- Object
- Entity
- Analyst::Entities::ClassMethod
show all
- Defined in:
- lib/analyst/entities/method.rb
Instance Attribute Summary
Attributes inherited from Entity
#ast, #parent
Instance Method Summary
collapse
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
Instance Method Details
#full_name ⇒ Object
30
31
32
|
# File 'lib/analyst/entities/method.rb', line 30
def full_name
parent.full_name + '::' + name
end
|
#kind ⇒ Object
22
23
24
|
# File 'lib/analyst/entities/method.rb', line 22
def kind
"Class Method"
end
|
#name ⇒ Object
26
27
28
|
# File 'lib/analyst/entities/method.rb', line 26
def name
ast.children.first.to_s
end
|