Class: Ibex::Runtime::RepairInput

Inherits:
Object
  • Object
show all
Defined in:
lib/ibex/runtime/repair.rb

Overview

Internal normalized input record retained while repair looks ahead.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#locationObject (readonly)

: Object?



129
130
131
# File 'lib/ibex/runtime/repair.rb', line 129

def location
  @location
end

#token_idObject (readonly)

: Integer



126
127
128
# File 'lib/ibex/runtime/repair.rb', line 126

def token_id
  @token_id
end

#token_nameObject (readonly)

: String



127
128
129
# File 'lib/ibex/runtime/repair.rb', line 127

def token_name
  @token_name
end

#valueObject (readonly)

: Object?



128
129
130
# File 'lib/ibex/runtime/repair.rb', line 128

def value
  @value
end

Instance Method Details

#eof?Boolean

Returns:

  • (Boolean)


141
# File 'lib/ibex/runtime/repair.rb', line 141

def eof? = @token_id.zero?