lib/ruote/exp/ro_timers.rb
# Reads the :timeout and :timers attributes and schedule as necessary.
#
Reads the :timeout and :timers attributes and schedule as necessary.
Reads the : timeout and : timers attributes and schedule as necessary .
def consider_timers
      h.has_timers = (attribute(:timers) || attribute(:timeout)) != nil
      timers = (attribute(:timers) || '').split(/,/)
      if to = attribute(:timeout)
        timers << "#{to}: timeout" unless to.strip == ''
      end
      schedule_timers(timers)
    end
def consider_timers h . has_timers = ( attribute ( :timers ) || attribute ( :timeout ) ) != nil timers = ( attribute ( :timers ) || '' ) . split ( / , / ) if to = attribute ( :timeout ) timers << "#{to}: timeout" unless to . strip == '' end schedule_timers ( timers ) end
Reads the :timeout and :timers attributes and schedule as necessary.
Reads the : timeout and : timers attributes and schedule as necessary .
# to enforce pdef defined timers vs participant defined timers