class EXIFR::TIFF::Degrees
Public Class Methods
new(arr)
click to toggle source
Calls superclass method
# File lib/exifr/tiff.rb, line 333 def initialize(arr) unless arr.length == 3 && arr.all?{|v| Rational === v} raise "expected [degrees, minutes, seconds]; got #{arr.inspect}" end super end
Public Instance Methods
to_f()
click to toggle source
# File lib/exifr/tiff.rb, line 340 def to_f reduce { |m,v| m * 60 + v}.to_f / 3600 end