class PrintText
Attributes
temperature[R]
Public Instance Methods
print()
click to toggle source
# File lib/print_text.rb, line 7 def print texttemerature = Temperature.new puts "Temperature: " puts texttemerature.celsius.to_s + " °C" puts texttemerature.to_fahrenheit.to_s + " °F" puts texttemerature.to_kelvin.to_s + " K" end