Class: Analyst::Entities::MethodCall

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

Constructor Details

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

Instance Method Details

#argumentsObject



15
16
17
# File 'lib/analyst/entities/method_call.rb', line 15

def arguments
  @arguments ||= process_nodes(ast.children[2..-1])
end

#full_nameObject



11
12
13
# File 'lib/analyst/entities/method_call.rb', line 11

def full_name
  name
end

#nameObject



7
8
9
# File 'lib/analyst/entities/method_call.rb', line 7

def name
  name_node.to_s
end

#scopeObject



19
20
21
# File 'lib/analyst/entities/method_call.rb', line 19

def scope
  @scope ||= process_node(ast.children.first)
end