class Converter

Public Class Methods

new() click to toggle source
# File lib/converter.rb, line 2
def initialize; end

Public Instance Methods

ctof(celsiusvalue) click to toggle source
# File lib/converter.rb, line 16
def ctof(celsiusvalue)
  (celsiusvalue * 1.8) + 32
end
ctok(celsiusvalue) click to toggle source
# File lib/converter.rb, line 8
def ctok(celsiusvalue)
  celsiusvalue + 273
end
ftoc(fahrvalue) click to toggle source
# File lib/converter.rb, line 12
def ftoc(fahrvalue)
  (fahrvalue - 32) / 1.8
end
ftok(fahrvalue) click to toggle source
# File lib/converter.rb, line 24
def ftok(fahrvalue)
  (fahrvalue + 459.67) * (5 / 9)
end
ktoc(kelvinvalue) click to toggle source
# File lib/converter.rb, line 4
def ktoc(kelvinvalue)
  kelvinvalue - 273
end
ktof(kelvinvalue) click to toggle source
# File lib/converter.rb, line 20
def ktof(kelvinvalue)
  (kelvinvalue * (9 / 5)) - 459.67
end