vendor/bundle/ruby/1.8/gems/rufus-scheduler-2.0.16/lib/rufus/sc/jobqueues.rb
def job_to_trigger(now)

      @mutex.synchronize do
        if @jobs.size > 0 && now.to_f >= @jobs.first.at
          @jobs.shift
        else
          nil
        end
      end
    end
# Returns the next job to trigger. Returns nil if none eligible.
#
Returns the next job to trigger. Returns nil if none eligible.
Returns the next job to trigger . Returns nil if none eligible .
def job_to_trigger(now)
      @mutex.synchronize do
        if @jobs.size > 0 && now.to_f >= @jobs.first.at
          @jobs.shift
        else
          nil
        end
      end
    end
def job_to_trigger ( now ) @mutex . synchronize do if @jobs . size > 0 && now . to_f >= @jobs . first . at @jobs . shift else nil end end end
Returns the next job to trigger.
Returns the next job to trigger .
now