Class: TextPrinter

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

Class Method Summary collapse

Class Method Details

.printer(celcius, fahrenheit, kelvin) ⇒ Object

Prints the three formats of temperature as simple text in a console



5
6
7
8
9
# File 'lib/text_printer.rb', line 5

def self.printer(celcius, fahrenheit, kelvin)
  puts "#{celcius} °C"
  puts "#{fahrenheit} °F"
  puts "#{kelvin} K"
end