Class: I18nFlow::Validator::AsymmetricArgsError
- 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:) ⇒ AsymmetricArgsError
constructor
A new instance of AsymmetricArgsError.
Methods inherited from Error
Constructor Details
#initialize(key, expect:, actual:) ⇒ AsymmetricArgsError
Returns a new instance of AsymmetricArgsError.
89 90 91 92 93 |
# File 'lib/i18n_flow/validator/errors.rb', line 89 def initialize(key, expect:, actual:) super(key) @expect = expect @actual = actual end |
Instance Attribute Details
#actual ⇒ Object (readonly)
Returns the value of attribute actual.
87 88 89 |
# File 'lib/i18n_flow/validator/errors.rb', line 87 def actual @actual end |
#expect ⇒ Object (readonly)
Returns the value of attribute expect.
86 87 88 |
# File 'lib/i18n_flow/validator/errors.rb', line 86 def expect @expect end |
Instance Method Details
#data ⇒ Object
95 96 97 |
# File 'lib/i18n_flow/validator/errors.rb', line 95 def data super + [expect, actual] end |