class EXIFR::TIFF::Degrees

Public Class Methods

new(arr) click to toggle source
Calls superclass method
# File lib/exifr/tiff.rb, line 329
def initialize(arr)
  raise "expected [degrees, minutes, seconds]" unless arr.length == 3
  super
end

Public Instance Methods

to_f() click to toggle source
# File lib/exifr/tiff.rb, line 334
def to_f
  reduce { |m,v| m * 60 + v}.to_f / 3600
end