Class: Gettmp::Celsius
- Inherits:
-
Object
- Object
- Gettmp::Celsius
- Defined in:
- lib/a14z8fy_tmpcov.rb
Instance Method Summary collapse
-
#initialize(tmp) ⇒ Celsius
constructor
A new instance of Celsius.
- #toFahrenheit ⇒ Object
Constructor Details
#initialize(tmp) ⇒ Celsius
Returns a new instance of Celsius.
14 15 16 |
# File 'lib/a14z8fy_tmpcov.rb', line 14 def initialize(tmp) @tmp = tmp end |
Instance Method Details
#toFahrenheit ⇒ Object
18 19 20 21 |
# File 'lib/a14z8fy_tmpcov.rb', line 18 def toFahrenheit @f = @tmp * 1.8 + 32 puts @f end |