Class: Ibex::Runtime::RepairInput
- Inherits:
-
Object
- Object
- Ibex::Runtime::RepairInput
- Defined in:
- lib/ibex/runtime/repair.rb
Overview
Internal normalized input record retained while repair looks ahead.
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
: untyped.
-
#token_id ⇒ Object
readonly
: Integer.
-
#token_name ⇒ Object
readonly
: String.
-
#value ⇒ Object
readonly
: untyped.
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.
101 102 103 104 105 106 107 |
# File 'lib/ibex/runtime/repair.rb', line 101 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)
: untyped
98 99 100 |
# File 'lib/ibex/runtime/repair.rb', line 98 def location @location end |
#token_id ⇒ Object (readonly)
: Integer
95 96 97 |
# File 'lib/ibex/runtime/repair.rb', line 95 def token_id @token_id end |
#token_name ⇒ Object (readonly)
: String
96 97 98 |
# File 'lib/ibex/runtime/repair.rb', line 96 def token_name @token_name end |
#value ⇒ Object (readonly)
: untyped
97 98 99 |
# File 'lib/ibex/runtime/repair.rb', line 97 def value @value end |
Instance Method Details
#eof? ⇒ Boolean
110 |
# File 'lib/ibex/runtime/repair.rb', line 110 def eof? = @token_id.zero? |