Class: EventedBluepill::GroupTimer

Inherits:
Coolio::TimerWatcher
  • Object
show all
Defined in:
lib/evented_bluepill/group.rb

Instance Method Summary collapse

Constructor Details

#initialize(process, event) ⇒ GroupTimer

Returns a new instance of GroupTimer.



5
6
7
8
9
10
# File 'lib/evented_bluepill/group.rb', line 5

def initialize(process, event)
  @process = process
  @event = event

  super(0, false)
end

Instance Method Details

#on_timerObject



12
13
14
# File 'lib/evented_bluepill/group.rb', line 12

def on_timer
  @process.handle_user_command(@event)
end