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.
115 116 117 118 119 |
# File 'lib/i18n_flow/validator/errors.rb', line 115 def initialize(key, expect:, actual:) super(key) @expect = expect @actual = actual end |
Instance Attribute Details
#actual ⇒ Object (readonly)
Returns the value of attribute actual.
113 114 115 |
# File 'lib/i18n_flow/validator/errors.rb', line 113 def actual @actual end |
#expect ⇒ Object (readonly)
Returns the value of attribute expect.
112 113 114 |
# File 'lib/i18n_flow/validator/errors.rb', line 112 def expect @expect end |
Instance Method Details
#data ⇒ Object
121 122 123 |
# File 'lib/i18n_flow/validator/errors.rb', line 121 def data super + [expect, actual] end |