Class: EventedBluepill::GroupTimer
- Inherits:
-
Coolio::TimerWatcher
- Object
- Coolio::TimerWatcher
- EventedBluepill::GroupTimer
- Defined in:
- lib/evented_bluepill/group.rb
Instance Method Summary collapse
-
#initialize(process, event) ⇒ GroupTimer
constructor
A new instance of GroupTimer.
- #on_timer ⇒ Object
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_timer ⇒ Object
12 13 14 |
# File 'lib/evented_bluepill/group.rb', line 12 def on_timer @process.handle_user_command(@event) end |