Class: Steep::TypeInference::ContextArray::Entry
- Inherits:
-
Object
- Object
- Steep::TypeInference::ContextArray::Entry
- Defined in:
- lib/steep/type_inference/context_array.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#range ⇒ Object
readonly
Returns the value of attribute range.
-
#sub_entries ⇒ Object
readonly
Returns the value of attribute sub_entries.
Instance Method Summary collapse
-
#initialize(range:, context:) ⇒ Entry
constructor
A new instance of Entry.
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
#context ⇒ Object (readonly)
Returns the value of attribute context.
5 6 7 |
# File 'lib/steep/type_inference/context_array.rb', line 5 def context @context end |
#range ⇒ Object (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_entries ⇒ Object (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 |