Class: Analyst::Entities::MethodCall
- Defined in:
- lib/analyst/entities/method_call.rb
Instance Attribute Summary
Attributes inherited from Entity
Instance Method Summary collapse
- #full_name ⇒ Object
- #name ⇒ Object
-
#target_node ⇒ Object
TODO: figure out how to resolve this to an Entity.
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_name ⇒ Object
9 10 11 |
# File 'lib/analyst/entities/method_call.rb', line 9 def full_name name end |
#name ⇒ Object
5 6 7 |
# File 'lib/analyst/entities/method_call.rb', line 5 def name name_node.to_s end |
#target_node ⇒ Object
TODO: figure out how to resolve this to an Entity. we never want to expose the AST to the outside.
15 16 17 |
# File 'lib/analyst/entities/method_call.rb', line 15 def target_node ast.children.first end |