Module Rufus::Scheduler::Schedulable

  1. lib/rufus/sc/scheduler.rb

It’s OK to pass an object responding to :trigger when scheduling a job (instead of passing a block).

This is simply a helper module. The rufus-scheduler will check if scheduled object quack (respond to :trigger anyway).

Methods

public instance

  1. call
  2. trigger

Public instance methods

call (job)
[show source]
    # File lib/rufus/sc/scheduler.rb, line 46
46:     def call (job)
47:       trigger(job.params)
48:     end
trigger (params)
[show source]
    # File lib/rufus/sc/scheduler.rb, line 49
49:     def trigger (params)
50:       raise NotImplementedError.new('implementation is missing')
51:     end