Class: Definition::Types::ErrorRenderers::Standard

Inherits:
Object
  • Object
show all
Defined in:
lib/definition/types/error_renderers/standard.rb

Direct Known Subclasses

Lambda, Leaf

Instance Method Summary collapse

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_errorObject



12
13
14
# File 'lib/definition/types/error_renderers/standard.rb', line 12

def translated_error
  i18n_error
end