Method: Runt::Schedule#add

Defined in:
lib/runt/schedule.rb

#add(event, expression) ⇒ Object

Schedule event to occur using the given expression.

NOTE: version 0.5.0 no longer uses an Array of ScheduleElements 
internally to hold data. This would only matter to clients if they
they depended on the ability to call add multiple times for the same
event. Use the update method instead.


20
21
22
# File 'lib/runt/schedule.rb', line 20

def add(event, expression)
  @elems[event]=expression
end