Sha256: 7c305ec189d6f0771805e6fbefa2f2e5f85ead5ab492954db6e239a593c70982
Contents?: true
Size: 401 Bytes
Versions: 1
Compression:
Stored size: 401 Bytes
Contents
require 'chemistry/temperature' module Chemistry class Temperature class Kelvin < Chemistry::Temperature def to_kelvin self end def to_celsius Chemistry::Temperature.celsius convert_to_celsius end def to_fahrenheit to_celsius.to_fahrenheit end def convert_to_celsius @temperature - 273.15 end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
chemistry-0.0.3 | lib/chemistry/temperature/kelvin.rb |