Class: I18nFlow::Validator::ExtraKeyError
- Defined in:
- lib/i18n_flow/validator/errors.rb
Instance Attribute Summary collapse
-
#dest_key ⇒ Object
readonly
Returns the value of attribute dest_key.
-
#dest_node ⇒ Object
readonly
Returns the value of attribute dest_node.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(key, single: false) ⇒ ExtraKeyError
constructor
A new instance of ExtraKeyError.
- #set_correction_context(dest_node:, dest_key:) ⇒ Object
Methods inherited from Error
#==, #data, #set_location, #single?
Constructor Details
#initialize(key, single: false) ⇒ ExtraKeyError
Returns a new instance of ExtraKeyError.
58 59 60 61 |
# File 'lib/i18n_flow/validator/errors.rb', line 58 def initialize(key, single: false) super(key) @single = single end |
Instance Attribute Details
#dest_key ⇒ Object (readonly)
Returns the value of attribute dest_key.
56 57 58 |
# File 'lib/i18n_flow/validator/errors.rb', line 56 def dest_key @dest_key end |
#dest_node ⇒ Object (readonly)
Returns the value of attribute dest_node.
55 56 57 |
# File 'lib/i18n_flow/validator/errors.rb', line 55 def dest_node @dest_node end |
Instance Method Details
#set_correction_context(dest_node:, dest_key:) ⇒ Object
63 64 65 66 |
# File 'lib/i18n_flow/validator/errors.rb', line 63 def set_correction_context(dest_node:, dest_key:) @dest_node, @dest_key = dest_node, dest_key self end |