Class: Steep::TypeConstruction::BreakContext

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(break_type:, next_type:) ⇒ BreakContext

Returns a new instance of BreakContext.



75
76
77
78
# File 'lib/steep/type_construction.rb', line 75

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.



72
73
74
# File 'lib/steep/type_construction.rb', line 72

def break_type
  @break_type
end

#next_typeObject (readonly)

Returns the value of attribute next_type.



73
74
75
# File 'lib/steep/type_construction.rb', line 73

def next_type
  @next_type
end