class PrintJson
Attributes
temperature[R]
Public Instance Methods
print()
click to toggle source
# File lib/print_json.rb, line 8 def print jsontemerature = Temperature.new puts "{celsius: #{jsontemerature.celsius.to_s}, fahrenheit: #{jsontemerature.to_fahrenheit.to_s}, kelvin: #{jsontemerature.to_kelvin.to_s}}" end