module Exif::Tag::Formatter::URational
convert data to unsigned rational(4+4 byte) value, which in turn is converted to Rational object.
Public Instance Methods
_formatData(data)
click to toggle source
# File lib/exifparser/tag.rb, line 96 def _formatData(data) a = decode_ulong(data[0,4]) b = decode_ulong(data[4,4]) return Rational(0,1) if b == 0 Rational(a, b) end
format()
click to toggle source
# File lib/exifparser/tag.rb, line 92 def format 'Unsigned rational' end