Sha256: e1c4a4a338a286f41738371784819a4118eb921924dabe9f66cb41afab9b033b

Contents?: true

Size: 333 Bytes

Versions: 3

Compression:

Stored size: 333 Bytes

Contents

seconds = eval(ARGV[0] || "1000").to_f
p 'syntax: second to convert, first conversion ratio, second conversation ratio'
twentyNinePointNineSeven =  30000/1001.0
p 'converted value is', seconds * (ARGV[1] || twentyNinePointNineSeven/30).to_f
p 'another converted value is', seconds* (ARGV[2] || 30/twentyNinePointNineSeven).to_f

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sensible-cinema-0.23.2 lib/auto_convert.rb
sensible-cinema-0.23.1 lib/auto_convert.rb
sensible-cinema-0.23.0 lib/auto_convert.rb