Class: TextPrinter
- Inherits:
-
Object
- Object
- TextPrinter
- Defined in:
- lib/text_printer.rb
Class Method Summary collapse
-
.print(celsius, fahrenheit, kelvin) ⇒ Object
Prints all 3 temperatures.
Class Method Details
.print(celsius, fahrenheit, kelvin) ⇒ Object
Prints all 3 temperatures.
3 4 5 6 7 8 |
# File 'lib/text_printer.rb', line 3 def self.print(celsius,fahrenheit, kelvin) puts "#{celsius} °C" puts "#{fahrenheit} °F" puts "#{kelvin} °K" end |