Class: Convertr::File

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/convertr/file.rb

Instance Method Summary collapse

Instance Method Details

#float_aspectObject



10
11
12
13
# File 'lib/convertr/file.rb', line 10

def float_aspect
  (w, h) = aspect.split(':')
  w.to_f / h.to_f
end