Class: IIIFManifest::ManifestServiceLocator::InjectedFactory

Inherits:
Object
  • Object
show all
Defined in:
lib/iiif_manifest/manifest_service_locator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#factoryObject (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_argsObject (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