Class: Analyst::Entities::SingletonMethod
- Defined in:
- lib/analyst/entities/method.rb
Instance Attribute Summary
Attributes inherited from Entity
Instance Method Summary collapse
- #full_name ⇒ Object
- #name ⇒ Object
-
#target ⇒ Object
NOTE: not a public API – used by Entities::Class.
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_name ⇒ Object
49 50 51 |
# File 'lib/analyst/entities/method.rb', line 49 def full_name parent.full_name + '::' + name end |
#name ⇒ Object
45 46 47 |
# File 'lib/analyst/entities/method.rb', line 45 def name ast.children[1].to_s end |
#target ⇒ Object
NOTE: not a public API – used by Entities::Class
40 41 42 43 |
# File 'lib/analyst/entities/method.rb', line 40 def target target, name, params, content = ast.children target end |