Class: IIIFManifest::ManifestBuilder::CompositeBuilderFactory
- Inherits:
-
Object
- Object
- IIIFManifest::ManifestBuilder::CompositeBuilderFactory
- Defined in:
- lib/iiif_manifest/manifest_builder/composite_builder_factory.rb
Instance Attribute Summary collapse
-
#composite_builder ⇒ Object
readonly
Returns the value of attribute composite_builder.
-
#factories ⇒ Object
readonly
Returns the value of attribute factories.
Instance Method Summary collapse
-
#initialize(*factories, composite_builder:) ⇒ CompositeBuilderFactory
constructor
A new instance of CompositeBuilderFactory.
- #new(*args) ⇒ Object
Constructor Details
#initialize(*factories, composite_builder:) ⇒ CompositeBuilderFactory
Returns a new instance of CompositeBuilderFactory.
5 6 7 8 |
# File 'lib/iiif_manifest/manifest_builder/composite_builder_factory.rb', line 5 def initialize(*factories, composite_builder:) @factories = factories @composite_builder = composite_builder end |
Instance Attribute Details
#composite_builder ⇒ Object (readonly)
Returns the value of attribute composite_builder.
4 5 6 |
# File 'lib/iiif_manifest/manifest_builder/composite_builder_factory.rb', line 4 def composite_builder @composite_builder end |
#factories ⇒ Object (readonly)
Returns the value of attribute factories.
4 5 6 |
# File 'lib/iiif_manifest/manifest_builder/composite_builder_factory.rb', line 4 def factories @factories end |
Instance Method Details
#new(*args) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/iiif_manifest/manifest_builder/composite_builder_factory.rb', line 10 def new(*args) result = factories.map do |factory| factory.new(*args) end composite_builder.new(*result) end |