Class: Steep::TypeInference::ContextArray::Entry

Inherits:
Object
  • Object
show all
Defined in:
lib/steep/type_inference/context_array.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(range:, context:) ⇒ Entry

Returns a new instance of Entry.



7
8
9
10
11
# File 'lib/steep/type_inference/context_array.rb', line 7

def initialize(range:, context:)
  @range = range
  @context = context
  @sub_entries = Set[].compare_by_identity
end

Instance Attribute Details

#contextObject (readonly)

Returns the value of attribute context.



5
6
7
# File 'lib/steep/type_inference/context_array.rb', line 5

def context
  @context
end

#rangeObject (readonly)

Returns the value of attribute range.



5
6
7
# File 'lib/steep/type_inference/context_array.rb', line 5

def range
  @range
end

#sub_entriesObject (readonly)

Returns the value of attribute sub_entries.



5
6
7
# File 'lib/steep/type_inference/context_array.rb', line 5

def sub_entries
  @sub_entries
end