Class: Steep::TypeInference::Context::BreakContext

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(break_type:, next_type:) ⇒ BreakContext

Returns a new instance of BreakContext.



38
39
40
41
# File 'lib/steep/type_inference/context.rb', line 38

def initialize(break_type:, next_type:)
  @break_type = break_type
  @next_type = next_type
end

Instance Attribute Details

#break_typeObject (readonly)

Returns the value of attribute break_type.



35
36
37
# File 'lib/steep/type_inference/context.rb', line 35

def break_type
  @break_type
end

#next_typeObject (readonly)

Returns the value of attribute next_type.



36
37
38
# File 'lib/steep/type_inference/context.rb', line 36

def next_type
  @next_type
end