Class: I18nFlow::Validator::InvalidLocaleError
- Defined in:
- lib/i18n_flow/validator/errors.rb
Instance Attribute Summary collapse
-
#actual ⇒ Object
readonly
Returns the value of attribute actual.
-
#expect ⇒ Object
readonly
Returns the value of attribute expect.
Attributes inherited from Error
Instance Method Summary collapse
- #data ⇒ Object
-
#initialize(key, expect:, actual:) ⇒ InvalidLocaleError
constructor
A new instance of InvalidLocaleError.
Methods inherited from Error
Constructor Details
#initialize(key, expect:, actual:) ⇒ InvalidLocaleError
Returns a new instance of InvalidLocaleError.
100 101 102 103 104 |
# File 'lib/i18n_flow/validator/errors.rb', line 100 def initialize(key, expect:, actual:) super(key) @expect = expect @actual = actual end |
Instance Attribute Details
#actual ⇒ Object (readonly)
Returns the value of attribute actual.
98 99 100 |
# File 'lib/i18n_flow/validator/errors.rb', line 98 def actual @actual end |
#expect ⇒ Object (readonly)
Returns the value of attribute expect.
97 98 99 |
# File 'lib/i18n_flow/validator/errors.rb', line 97 def expect @expect end |
Instance Method Details
#data ⇒ Object
106 107 108 |
# File 'lib/i18n_flow/validator/errors.rb', line 106 def data super + [expect, actual] end |