class Led
Attributes
color[RW]
Public Class Methods
new()
click to toggle source
# File lib/led.rb, line 4 def initialize() end
Public Instance Methods
check_led(temp)
click to toggle source
# File lib/led.rb, line 8 def check_led(temp) if temp>(0) @color = Color.new("Red",temp) elsif temp<(0) @color = Color.new("Blue",temp) elsif temp == 0 @color = Color.new("Green",temp) end end