Sha256: a45bfa74e9854f34404deb8497252bdd853be048c18d14dfbce549149af72d12

Contents?: true

Size: 306 Bytes

Versions: 1

Compression:

Stored size: 306 Bytes

Contents

begin
  require 'exifr/tiff'
rescue LoadError => exception
  raise exception unless exception.path == 'exifr/tiff'
end

module XMP::Handler
  class ExifrTIFF
    def call(object)
      return unless defined?(EXIFR::TIFF) && object.is_a?(EXIFR::TIFF)
      object.xmp || XMP::Document.new
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
xmp-2.0.0 lib/xmp/handler/exifr_tiff.rb