Class: Synapse::Configuration::UpcasterChainDefinitionBuilder
- Inherits:
-
DefinitionBuilder
- Object
- DefinitionBuilder
- Synapse::Configuration::UpcasterChainDefinitionBuilder
- Defined in:
- lib/synapse/configuration/component/upcasting/upcaster_chain.rb
Overview
Definition builder used to create an upcaster chain
Note that order is very important when building an upcaster chain; the container maintains order when upcasters are registered as service definitions.
Instance Attribute Summary
Attributes inherited from DefinitionBuilder
Instance Method Summary collapse
-
#use_converter_factory(converter_factory) ⇒ undefined
Changes the converter factory.
-
#use_upcaster_tag(upcaster_tag) ⇒ undefined
Changes the tag to use to automatically register upcasters.
Methods inherited from DefinitionBuilder
#anonymous, #as_prototype, #as_singleton, build, #build_composite, #build_definition, #identified_by, #initialize, #register_definition, #resolve, #resolve_tagged, #tag, #use_factory, #use_instance
Constructor Details
This class inherits a constructor from Synapse::Configuration::DefinitionBuilder
Instance Method Details
#use_converter_factory(converter_factory) ⇒ undefined
Changes the converter factory
26 27 28 |
# File 'lib/synapse/configuration/component/upcasting/upcaster_chain.rb', line 26 def use_converter_factory(converter_factory) @converter_factory = converter_factory end |
#use_upcaster_tag(upcaster_tag) ⇒ undefined
Changes the tag to use to automatically register upcasters
34 35 36 |
# File 'lib/synapse/configuration/component/upcasting/upcaster_chain.rb', line 34 def use_upcaster_tag(upcaster_tag) @upcaster_tag = upcaster_tag end |