Class: NSTimer

Inherits:
Object show all
Defined in:
lib/cocoa/sugarcube-timer/timer.rb

Class Method Summary collapse

Class Method Details

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


34
35
36
# File 'lib/cocoa/sugarcube-timer/timer.rb', line 34

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

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


30
31
32
# File 'lib/cocoa/sugarcube-timer/timer.rb', line 30

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