Sha256: 72efea5b13a87dfec19597e94d5d256f6261a89fda6c3f124bdd9eb32978c2c0
Contents?: true
Size: 457 Bytes
Versions: 1
Compression:
Stored size: 457 Bytes
Contents
# Nieve implementation of IO wrapper class that adds mime_type and original_name attributes. # This is done so the attributes do not have to be passed as additional arguments, # and are attached properly to the object they describe. # # # Use SimpleDelegator to wrap the given class or instance require 'delegate' module Hydra module Derivatives class IoDecorator < SimpleDelegator attr_accessor :mime_type, :original_name end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hydra-derivatives-2.0.0 | lib/hydra/derivatives/io_decorator.rb |