lib/sugarcube/numeric.rb in sugarcube-0.7 vs lib/sugarcube/numeric.rb in sugarcube-0.7.1

- old
+ new

@@ -21,6 +21,10 @@ def later(user_info=nil, &fire) NSTimer.scheduledTimerWithTimeInterval(self.to_f, target: fire, selector: 'call:', userInfo: user_info, repeats: false) end + def every(user_info=nil, &fire) + NSTimer.scheduledTimerWithTimeInterval(self.to_f, target: fire, selector: 'call:', userInfo: user_info, repeats: true) + end + end