Methods

Rufus::Scheduler::Schedulable

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).

Public Instance Methods

call(job) click to toggle source
    # File lib/rufus/sc/scheduler.rb, line 43
43:     def call(job)
44:       trigger(job.params)
45:     end
trigger(params) click to toggle source
    # File lib/rufus/sc/scheduler.rb, line 46
46:     def trigger(params)
47:       raise NotImplementedError.new('implementation is missing')
48:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.