Class: Time
- Inherits:
-
Object
- Object
- Time
- Defined in:
- lib/wires/time.rb
Overview
Reopen the Time class and add the fire method to enable nifty syntax like: 32.minutes.from_now.fire :event
Instance Method Summary collapse
Instance Method Details
#fire(event, channel = '*', **kwargs) ⇒ Object
197 198 199 200 |
# File 'lib/wires/time.rb', line 197 def fire(event, channel='*', **kwargs) Wires::TimeScheduler << \ Wires::TimeSchedulerItem.new(self, event, channel, **kwargs) end |