Class: Gettmp::Fahrenheit
- Inherits:
-
Object
- Object
- Gettmp::Fahrenheit
- Defined in:
- lib/a14z8fy_tmpcov.rb
Instance Method Summary collapse
-
#initialize(tmp) ⇒ Fahrenheit
constructor
A new instance of Fahrenheit.
- #toCelsius ⇒ Object
Constructor Details
#initialize(tmp) ⇒ Fahrenheit
Returns a new instance of Fahrenheit.
25 26 27 |
# File 'lib/a14z8fy_tmpcov.rb', line 25 def initialize(tmp) @tmp = tmp end |
Instance Method Details
#toCelsius ⇒ Object
29 30 31 32 |
# File 'lib/a14z8fy_tmpcov.rb', line 29 def toCelsius @c = (@tmp - 32) * 0.555556 puts @c end |