You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: jobs_repeat.rb
    path of file: ./repos/rufus-scheduler/lib/rufus/scheduler
    
    the code of the file until where you have to start completion: 
class Rufus::Scheduler::RepeatJob < Rufus::Scheduler::Job

  attr_reader :paused
    
  def set_next_time(trigger_time, is_post=false, now=nil)

    return if is_post

    n = now || EoTime.now

    return @next_time = @first_at \
      if @first_at && (trigger_time == nil || @first_at > n)

    dp = discard_past?

    loop do

      @next_time = (@next_time || n) + @frequency

      break if dp == false
      break if @next_time > n
    end
  end