Class: I18nFlow::Validator::TodoContentError
- 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:) ⇒ TodoContentError
constructor
A new instance of TodoContentError.
Methods inherited from Error
Constructor Details
#initialize(key, expect:, actual:) ⇒ TodoContentError
Returns a new instance of TodoContentError.
59 60 61 62 63 |
# File 'lib/i18n_flow/validator/errors.rb', line 59 def initialize(key, expect:, actual:) super(key) @expect = expect @actual = actual end |
Instance Attribute Details
#actual ⇒ Object (readonly)
Returns the value of attribute actual.
57 58 59 |
# File 'lib/i18n_flow/validator/errors.rb', line 57 def actual @actual end |
#expect ⇒ Object (readonly)
Returns the value of attribute expect.
56 57 58 |
# File 'lib/i18n_flow/validator/errors.rb', line 56 def expect @expect end |
Instance Method Details
#data ⇒ Object
65 66 67 |
# File 'lib/i18n_flow/validator/errors.rb', line 65 def data super + [expect, actual] end |