Sha256: 5fc70328b821d0be20d2604beb44a264fcc37300dd924a3054c55152ce4ef4b0
Contents?: true
Size: 413 Bytes
Versions: 1
Compression:
Stored size: 413 Bytes
Contents
require 'chemistry/temperature' module Chemistry class Temperature class Fahrenheit < Chemistry::Temperature def to_fahrenheit self end def to_kelvin to_celsius.to_kelvin end def to_celsius Chemistry::Temperature.celsius convert_to_celsius end def convert_to_celsius (@temperature - 32.0) / (9.0/5.0) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
chemistry-0.0.3 | lib/chemistry/temperature/fahrenheit.rb |