Training Ruby gem to convert celsius to kelvin and vice-versa
require 'celsius_kelvin'
CelsiusKelvin.convert(100, from: :kel, to: :cel)
#=> -173.15
CelsiusKelvin.convert(-173.15, from: :cel, to: :kel)
#=> 100.0
$ ./exe/celsius_kelvin 30.3 --from cel --to kel
303.45
$ ./exe/celsius_kelvin 303.45 --from kel --to cel
30.3
The gem is available as open source under the terms of the MIT License.