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, #clear_tags, #identified_by, #initialize, #register_definition, #replace_tags, #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
27 28 29 |
# File 'lib/synapse/configuration/component/upcasting/upcaster_chain.rb', line 27 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
36 37 38 |
# File 'lib/synapse/configuration/component/upcasting/upcaster_chain.rb', line 36 def use_upcaster_tag(upcaster_tag) @upcaster_tag = upcaster_tag end |