Class: Led
- Inherits:
-
PinX
- Object
- PinX
- Led
- Defined in:
- lib/simple_wiimote.rb
Instance Method Summary collapse
-
#initialize(parent) ⇒ Led
constructor
A new instance of Led.
- #state ⇒ Object
Constructor Details
#initialize(parent) ⇒ Led
Returns a new instance of Led.
11 12 13 |
# File 'lib/simple_wiimote.rb', line 11 def initialize(parent) @parent = parent end |
Instance Method Details
#state ⇒ Object
15 16 17 |
# File 'lib/simple_wiimote.rb', line 15 def state() @on ? 1 : 0 end |