Sha256: 953e7826e005cde8fbb90af4088572788c0cbfec2db2a2f2e27944baf2fe71b3

Contents?: true

Size: 541 Bytes

Versions: 19

Compression:

Stored size: 541 Bytes

Contents

module IIIFManifest
  class ManifestBuilder
    class CompositeBuilder
      attr_reader :services
      delegate :length, to: :services
      def initialize(*services)
        @services = services.compact
      end

      def apply(manifest)
        services.each do |service|
          manifest = service.apply(manifest)
        end
        manifest
      end

      def method_missing(meth_name, *args, &block)
        services.map do |service|
          service.__send__(meth_name, *args, &block)
        end
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/iiif_manifest-1.5.0/lib/iiif_manifest/manifest_builder/composite_builder.rb
iiif_manifest-1.6.0 lib/iiif_manifest/manifest_builder/composite_builder.rb
iiif_manifest-1.5.0 lib/iiif_manifest/manifest_builder/composite_builder.rb
iiif_manifest-1.4.0 lib/iiif_manifest/manifest_builder/composite_builder.rb
iiif_manifest-1.3.1 lib/iiif_manifest/manifest_builder/composite_builder.rb
iiif_manifest-1.3.0 lib/iiif_manifest/manifest_builder/composite_builder.rb
iiif_manifest-1.2.0 lib/iiif_manifest/manifest_builder/composite_builder.rb
iiif_manifest-1.1.1 lib/iiif_manifest/manifest_builder/composite_builder.rb
iiif_manifest-1.1.0 lib/iiif_manifest/manifest_builder/composite_builder.rb
iiif_manifest-1.0.1 lib/iiif_manifest/manifest_builder/composite_builder.rb
iiif_manifest-1.0.0 lib/iiif_manifest/manifest_builder/composite_builder.rb
iiif_manifest-0.6.0 lib/iiif_manifest/manifest_builder/composite_builder.rb
iiif_manifest-0.5.0 lib/iiif_manifest/manifest_builder/composite_builder.rb
iiif_manifest-0.4.0 lib/iiif_manifest/manifest_builder/composite_builder.rb
iiif_manifest-0.3.0 lib/iiif_manifest/manifest_builder/composite_builder.rb
iiif_manifest-0.2.0 lib/iiif_manifest/manifest_builder/composite_builder.rb
iiif_manifest-0.1.2 lib/iiif_manifest/manifest_builder/composite_builder.rb
iiif_manifest-0.1.1 lib/iiif_manifest/manifest_builder/composite_builder.rb
iiif_manifest-0.1.0 lib/iiif_manifest/manifest_builder/composite_builder.rb