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