Parent

Methods

EXIFR::TIFF::Degrees

Public Class Methods

new(arr) click to toggle source
# File lib/exifr/tiff.rb, line 304
def initialize(arr)
  raise MalformedTIFF, "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 309
def to_f
  reduce { |m,v| m * 60 + v}.to_f / 3600
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.