Class: Ibex::Runtime::RepairInput
- Inherits:
-
Object
- Object
- Ibex::Runtime::RepairInput
- Defined in:
- lib/ibex/runtime/repair.rb,
sig/ibex/runtime/repair.rbs
Overview
Internal normalized input record retained while repair looks ahead.
Instance Attribute Summary collapse
- #location ⇒ Object? readonly
- #token_id ⇒ Integer readonly
- #token_name ⇒ String readonly
- #value ⇒ Object? readonly
Instance Method Summary collapse
- #eof? ⇒ Boolean
-
#initialize(token_id:, token_name:, value:, location:) ⇒ RepairInput
constructor
A new instance of RepairInput.
Constructor Details
#initialize(token_id:, token_name:, value:, location:) ⇒ RepairInput
Returns a new instance of RepairInput.
132 133 134 135 136 137 138 |
# File 'lib/ibex/runtime/repair.rb', line 132 def initialize(token_id:, token_name:, value:, location:) @token_id = token_id @token_name = token_name.dup.freeze @value = value @location = location freeze end |
Instance Attribute Details
#location ⇒ Object? (readonly)
129 130 131 |
# File 'lib/ibex/runtime/repair.rb', line 129 def location @location end |
#token_id ⇒ Integer (readonly)
126 127 128 |
# File 'lib/ibex/runtime/repair.rb', line 126 def token_id @token_id end |
#token_name ⇒ String (readonly)
127 128 129 |
# File 'lib/ibex/runtime/repair.rb', line 127 def token_name @token_name end |
#value ⇒ Object? (readonly)
128 129 130 |
# File 'lib/ibex/runtime/repair.rb', line 128 def value @value end |
Instance Method Details
#eof? ⇒ Boolean
141 |
# File 'lib/ibex/runtime/repair.rb', line 141 def eof? = @token_id.zero? |