Class: Shmidi::OnOffClock

Inherits:
Clock
  • Object
show all
Defined in:
lib/shmidi/on_off_clock.rb

Instance Method Summary collapse

Methods inherited from Clock

#sync

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