Class: HtmlPrinter

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

Class Method Summary collapse

Class Method Details

.printer(celcius, fahrenheit, kelvin) ⇒ Object

Prints the three formats of temperature in HTML



4
5
6
7
8
9
10
# File 'lib/html_printer.rb', line 4

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