Module: SugarCube::Timer

Defined in:
lib/cocoa/sugarcube-timer/timer.rb

Class Method Summary collapse

Class Method Details

.after(time, user_info = nil, &fire) ⇒ Object


22
23
24
# File 'lib/cocoa/sugarcube-timer/timer.rb', line 22

def after(time, =nil, &fire)
  time.later , &fire
end

.every(time, user_info = nil, &fire) ⇒ Object


18
19
20
# File 'lib/cocoa/sugarcube-timer/timer.rb', line 18

def every(time, =nil, &fire)
  time.every , &fire
end