Class: Shmidi::OnOffClock
Instance Method Summary collapse
-
#initialize(socket, delay = 0.2, delay_off = 0.2) ⇒ OnOffClock
constructor
A new instance of OnOffClock.
Methods inherited from Clock
Constructor Details
#initialize(socket, delay = 0.2, delay_off = 0.2) ⇒ OnOffClock
Returns a new instance of OnOffClock.
4 5 6 7 8 |
# File 'lib/shmidi/on_off_clock.rb', line 4 def initialize(socket, delay = 0.2, delay_off = 0.2) @next_on = false super(socket, delay) @delay_off = delay_off end |