Class: I18nAdd::YamlProcessor::ProcessorState

Inherits:
Object
  • Object
show all
Defined in:
lib/i18n_add/yaml_processor.rb

Overview

Helper class to manage processor state

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(position, max_position) ⇒ ProcessorState

Returns a new instance of ProcessorState.



222
223
224
225
# File 'lib/i18n_add/yaml_processor.rb', line 222

def initialize(position, max_position)
  @position = position
  @max_position = max_position
end

Instance Attribute Details

#max_positionObject

Returns the value of attribute max_position.



220
221
222
# File 'lib/i18n_add/yaml_processor.rb', line 220

def max_position
  @max_position
end

#positionObject

Returns the value of attribute position.



220
221
222
# File 'lib/i18n_add/yaml_processor.rb', line 220

def position
  @position
end