Class: I18nFlow::Validator::MissingKeyError
- 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.
-
#src_node ⇒ Object
readonly
Returns the value of attribute src_node.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(key, single: false) ⇒ MissingKeyError
constructor
A new instance of MissingKeyError.
- #set_correction_context(dest_node:, dest_key:, src_node:) ⇒ Object
Methods inherited from Error
#==, #data, #set_location, #single?
Constructor Details
#initialize(key, single: false) ⇒ MissingKeyError
Returns a new instance of MissingKeyError.
43 44 45 46 |
# File 'lib/i18n_flow/validator/errors.rb', line 43 def initialize(key, single: false) super(key) @single = single end |
Instance Attribute Details
#dest_key ⇒ Object (readonly)
Returns the value of attribute dest_key.
40 41 42 |
# File 'lib/i18n_flow/validator/errors.rb', line 40 def dest_key @dest_key end |
#dest_node ⇒ Object (readonly)
Returns the value of attribute dest_node.
39 40 41 |
# File 'lib/i18n_flow/validator/errors.rb', line 39 def dest_node @dest_node end |
#src_node ⇒ Object (readonly)
Returns the value of attribute src_node.
41 42 43 |
# File 'lib/i18n_flow/validator/errors.rb', line 41 def src_node @src_node end |
Instance Method Details
#set_correction_context(dest_node:, dest_key:, src_node:) ⇒ Object
48 49 50 51 |
# File 'lib/i18n_flow/validator/errors.rb', line 48 def set_correction_context(dest_node:, dest_key:, src_node:) @dest_node, @dest_key, @src_node = dest_node, dest_key, src_node self end |