Class: Time

Inherits:
Object
  • Object
show all
Defined in:
lib/wires/core_ext/time.rb

Overview

Add Time#fire for timed firing of events

Instance Method Summary collapse

Instance Method Details

#fire(events, channel, **kwargs) ⇒ Object



4
5
6
# File 'lib/wires/core_ext/time.rb', line 4

def fire(events, channel, **kwargs)
  Wires::TimeScheduler.add(self, events, channel, **kwargs)
end