module Exif::Tag::Formatter::SRational
convert data to signed rational (4+4 byte) value.
Public Instance Methods
_formatData(data)
click to toggle source
# File lib/exifparser/tag.rb, line 163 def _formatData(data) a = decode_slong(data[0,4]) b = decode_slong(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 159 def format 'Signed rational' end