Class: XMP::Handler::ExifrTIFF

Inherits:
Object
  • Object
show all
Defined in:
lib/xmp/handler/exifr_tiff.rb

Instance Method Summary collapse

Instance Method Details

#call(object) ⇒ Object



9
10
11
12
# File 'lib/xmp/handler/exifr_tiff.rb', line 9

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