Class: Yoda::Model::NodeSignatures::Send

Inherits:
Base
  • Object
show all
Defined in:
lib/yoda/model/node_signatures/send.rb

Instance Attribute Summary

Attributes inherited from Base

#node_info

Instance Method Summary collapse

Methods inherited from Base

#initialize, #node_range, #node_type_description, #type_descriptions

Constructor Details

This class inherits a constructor from Yoda::Model::NodeSignatures::Base

Instance Method Details

#defined_filesArray<(String, Integer, Integer)>

Returns:

  • (Array<(String, Integer, Integer)>)


14
15
16
# File 'lib/yoda/model/node_signatures/send.rb', line 14

def defined_files
  node_info.method_candidates.map { |function| function.primary_source }.compact
end

#descriptionsObject



5
6
7
# File 'lib/yoda/model/node_signatures/send.rb', line 5

def descriptions
  [node_type_description, *function_descriptions]
end

#function_descriptionsObject



9
10
11
# File 'lib/yoda/model/node_signatures/send.rb', line 9

def function_descriptions
  node_info.method_candidates.map { |function| Descriptions::FunctionDescription.new(function) }
end