Class: EventMachine::OneShotEMTimer

Inherits:
Rev::TimerWatcher show all
Defined in:
lib/revem.rb

Instance Method Summary collapse

Methods inherited from Rev::TimerWatcher

#attach, #detach, #disable, #enable, #initialize, #reset

Methods inherited from Rev::Watcher

#attach, #attached?, #detach, #disable, #enable, #enabled?, #evloop, #initialize

Constructor Details

This class inherits a constructor from Rev::TimerWatcher

Instance Method Details

#on_timerObject



28
29
30
# File 'lib/revem.rb', line 28

def on_timer
 @proc.call
end

#setup(proc) ⇒ Object



24
25
26
# File 'lib/revem.rb', line 24

def setup(proc)
  @proc = proc
end