Class: Datacaster::ContextNodes::ErrorsCaster
- Inherits:
-
Datacaster::ContextNode
- Object
- Base
- Datacaster::ContextNode
- Datacaster::ContextNodes::ErrorsCaster
- Defined in:
- lib/datacaster/context_nodes/errors_caster.rb
Instance Method Summary collapse
-
#initialize(base, error_caster) ⇒ ErrorsCaster
constructor
A new instance of ErrorsCaster.
Methods inherited from Datacaster::ContextNode
Methods included from Mixin
#&, #*, #call, #call_with_runtime, #cast_errors, #i18n_key, #i18n_map_keys, #i18n_scope, #i18n_vars, #inspect, #then, #with_context, #with_object_context, #with_runtime, #|
Constructor Details
#initialize(base, error_caster) ⇒ ErrorsCaster
Returns a new instance of ErrorsCaster.
4 5 6 7 |
# File 'lib/datacaster/context_nodes/errors_caster.rb', line 4 def initialize(base, error_caster) super(base) @caster = error_caster end |