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.



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

#locationObject (readonly)

: untyped



98
99
100
# File 'lib/ibex/runtime/repair.rb', line 98

def location
  @location
end

#token_idObject (readonly)

: Integer



95
96
97
# File 'lib/ibex/runtime/repair.rb', line 95

def token_id
  @token_id
end

#token_nameObject (readonly)

: String



96
97
98
# File 'lib/ibex/runtime/repair.rb', line 96

def token_name
  @token_name
end

#valueObject (readonly)

: untyped



97
98
99
# File 'lib/ibex/runtime/repair.rb', line 97

def value
  @value
end

Instance Method Details

#eof?Boolean

Returns:

  • (Boolean)


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

def eof? = @token_id.zero?