Class: Gettmp
- Inherits:
-
Object
- Object
- Gettmp
- Defined in:
- lib/a14z8fy_tmpcov.rb
Defined Under Namespace
Classes: Celsius, Fahrenheit
Class Method Summary collapse
Class Method Details
.c2f(tmp) ⇒ Object
2 3 4 5 |
# File 'lib/a14z8fy_tmpcov.rb', line 2 def self.c2f(tmp) celsius = Celsius.new(tmp) celsius.toFahrenheit end |
.f2c(tmp) ⇒ Object
7 8 9 10 |
# File 'lib/a14z8fy_tmpcov.rb', line 7 def self.f2c(tmp) fahrenheit = Fahrenheit.new(tmp) fahrenheit.toCelsius end |