Class: IIIFManifest::ManifestServiceLocator::InjectedFactory
- Inherits:
-
Object
- Object
- IIIFManifest::ManifestServiceLocator::InjectedFactory
- Defined in:
- lib/iiif_manifest/manifest_service_locator.rb
Instance Attribute Summary collapse
-
#factory ⇒ Object
readonly
Returns the value of attribute factory.
-
#hash_args ⇒ Object
readonly
Returns the value of attribute hash_args.
Instance Method Summary collapse
-
#initialize(factory, **hash_args) ⇒ InjectedFactory
constructor
A new instance of InjectedFactory.
- #new(*args) ⇒ Object
Constructor Details
#initialize(factory, **hash_args) ⇒ InjectedFactory
Returns a new instance of InjectedFactory.
198 199 200 201 |
# File 'lib/iiif_manifest/manifest_service_locator.rb', line 198 def initialize(factory, **hash_args) @hash_args = hash_args @factory = factory end |
Instance Attribute Details
#factory ⇒ Object (readonly)
Returns the value of attribute factory.
197 198 199 |
# File 'lib/iiif_manifest/manifest_service_locator.rb', line 197 def factory @factory end |
#hash_args ⇒ Object (readonly)
Returns the value of attribute hash_args.
197 198 199 |
# File 'lib/iiif_manifest/manifest_service_locator.rb', line 197 def hash_args @hash_args end |
Instance Method Details
#new(*args) ⇒ Object
203 204 205 |
# File 'lib/iiif_manifest/manifest_service_locator.rb', line 203 def new(*args) factory.new(*args, **hash_args) end |