Class: Definition::Types::ErrorRenderers::Standard
- Inherits:
-
Object
- Object
- Definition::Types::ErrorRenderers::Standard
- Defined in:
- lib/definition/types/error_renderers/standard.rb
Instance Method Summary collapse
-
#initialize(conform_error, i18n_namespace:) ⇒ Standard
constructor
A new instance of Standard.
- #translated_error ⇒ Object
Constructor Details
#initialize(conform_error, i18n_namespace:) ⇒ Standard
Returns a new instance of Standard.
7 8 9 10 |
# File 'lib/definition/types/error_renderers/standard.rb', line 7 def initialize(conform_error, i18n_namespace:) self.conform_error = conform_error self.i18n_namespace = i18n_namespace end |
Instance Method Details
#translated_error ⇒ Object
12 13 14 |
# File 'lib/definition/types/error_renderers/standard.rb', line 12 def translated_error i18n_error end |