Class: Steep::TypeInference::SendArgs::KeywordArgs::ArgTypePairs

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(pairs:) ⇒ ArgTypePairs

Returns a new instance of ArgTypePairs.



192
193
194
# File 'lib/steep/type_inference/send_args.rb', line 192

def initialize(pairs:)
  @pairs = pairs
end

Instance Attribute Details

#pairsObject (readonly)

Returns the value of attribute pairs.



190
191
192
# File 'lib/steep/type_inference/send_args.rb', line 190

def pairs
  @pairs
end

Instance Method Details

#[](index) ⇒ Object



198
199
200
# File 'lib/steep/type_inference/send_args.rb', line 198

def [](index)
  pairs[index]
end

#sizeObject



202
203
204
# File 'lib/steep/type_inference/send_args.rb', line 202

def size
  pairs.size
end