class TemperatureConvertToFahrenheit

Constants

FAHRENHEIT_OFFSET
FAHRENHEIT_SLOPE

Attributes

temp[R]

Public Class Methods

to_fahrenheit(temp) click to toggle source
# File lib/temperature_convert_to_fahrenheit.rb, line 11
def self.to_fahrenheit(temp)
     (temp.to_f * FAHRENHEIT_SLOPE) + FAHRENHEIT_OFFSET
end