class Heater
Attributes
cooling[RW]
heating[RW]
Public Class Methods
new()
click to toggle source
# File lib/heater.rb, line 3 def initialize() end
Public Instance Methods
set_cooling()
click to toggle source
# File lib/heater.rb, line 11 def set_cooling() @cooling = "on" @heating = "off" end
set_heating()
click to toggle source
# File lib/heater.rb, line 6 def set_heating() @cooling = "off" @heating = "on" end
turn_off()
click to toggle source
# File lib/heater.rb, line 16 def turn_off() @cooling = "off" @heating = "off" end