Class: Analyst::Entities::InstanceMethod

Inherits:
Entity
  • Object
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

Constructor Details

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

Instance Method Details

#full_nameObject



16
17
18
# File 'lib/analyst/entities/method.rb', line 16

def full_name
  parent.full_name + '#' + name
end

#kindObject



10
# File 'lib/analyst/entities/method.rb', line 10

d

#nameObject



12
13
14
# File 'lib/analyst/entities/method.rb', line 12

def name
  ast.children.first.to_s
end