Class: TextPrinter

Inherits:
Object
  • Object
show all
Defined in:
lib/text_printer.rb

Class Method Summary collapse

Class Method Details

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