Class: Steep::TypeInference::SendArgs::PositionalArgs::NodeParamPair

Inherits:
Object
  • Object
show all
Includes:
Equatable
Defined in:
lib/steep/type_inference/send_args.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Equatable

#==, #eql?, #hash

Constructor Details

#initialize(node:, param:) ⇒ NodeParamPair

Returns a new instance of NodeParamPair.



9
10
11
12
# File 'lib/steep/type_inference/send_args.rb', line 9

def initialize(node:, param:)
  @node = node
  @param = param
end

Instance Attribute Details

#nodeObject (readonly)

Returns the value of attribute node.



6
7
8
# File 'lib/steep/type_inference/send_args.rb', line 6

def node
  @node
end

#paramObject (readonly)

Returns the value of attribute param.



7
8
9
# File 'lib/steep/type_inference/send_args.rb', line 7

def param
  @param
end

Instance Method Details

#to_aryObject



16
17
18
# File 'lib/steep/type_inference/send_args.rb', line 16

def to_ary
  [node, param]
end