Class: Analyst::Entities::MethodCall
- Inherits:
-
Entity
- Object
- Entity
- Analyst::Entities::MethodCall
show all
- Defined in:
- lib/analyst/entities/method_call.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
#arguments ⇒ Object
15
16
17
|
# File 'lib/analyst/entities/method_call.rb', line 15
def arguments
@arguments ||= process_nodes(ast.children[2..-1])
end
|
#full_name ⇒ Object
11
12
13
|
# File 'lib/analyst/entities/method_call.rb', line 11
def full_name
name
end
|
#name ⇒ Object
7
8
9
|
# File 'lib/analyst/entities/method_call.rb', line 7
def name
name_node.to_s
end
|
#scope ⇒ Object
19
20
21
|
# File 'lib/analyst/entities/method_call.rb', line 19
def scope
@scope ||= process_node(ast.children.first)
end
|