Class: I18nAdd::YamlProcessor::ProcessorState
- Inherits:
-
Object
- Object
- I18nAdd::YamlProcessor::ProcessorState
- Defined in:
- lib/i18n_add/yaml_processor.rb
Overview
Helper class to manage processor state
Instance Attribute Summary collapse
-
#max_position ⇒ Object
Returns the value of attribute max_position.
-
#position ⇒ Object
Returns the value of attribute position.
Instance Method Summary collapse
-
#initialize(position, max_position) ⇒ ProcessorState
constructor
A new instance of ProcessorState.
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_position ⇒ Object
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 |
#position ⇒ Object
Returns the value of attribute position.
220 221 222 |
# File 'lib/i18n_add/yaml_processor.rb', line 220 def position @position end |