lib/crontab_expression.rb
def intervals
    parts = {}
    [:minute, :hour, :day, :month, :day_of_week].each do |granularity|
      if times = times_for(granularity)
        parts[granularity] = times
      end
    end

    merged_product parts
    # interval_list.concat times.map {|t| {granularity => t} }
    # m = expression[:minute]
    # m.split(",").each do |part|
    #   time, divisor = part.split("/")
    #   start_time, end_time = time.split "-"

    #   interval_list << {:minute => start_time.to_i}
    # end
  end
# Public: calculate the distinct times for the expression
#
# "*" entries are left out, as these are implicitly defined in the target
# system (plist)
#
# Returns an array of unique minute/hour/day/month/day_of_week required
# to implement this expression.
calculate the distinct times for the expression
"*" entries are left out, as these are implicitly defined in the target
system (plist)

Returns an array of unique minute/hour/day/month/day_of_week required
to implement this expression.
calculate the distinct times for the expression " * " entries are left out as these are implicitly defined in the target system ( plist ) Returns an array of unique minute / hour / day / month / day_of_week required to implement this expression .
def intervals
    parts = {}
    [:minute, :hour, :day, :month, :day_of_week].each do |granularity|
      if times = times_for(granularity)
        parts[granularity] = times
      end
    end
    merged_product parts
  end
def intervals parts = { } [ :minute , :hour , :day , :month , :day_of_week ] . each do | granularity | if times = times_for ( granularity ) parts [ granularity ] = times end end merged_product parts end
Public: calculate the distinct times for the expression
"*" entries are left out, as these are implicitly defined in the target
system (plist)
Public : calculate the distinct times for the expression " * " entries are left out as these are implicitly defined in the target system ( plist )
# interval_list.concat times.map {|t| {granularity => t} } # m = expression[:minute] # m.split(",").each do |part| #   time, divisor = part.split("/") #   start_time, end_time = time.split "-" #   interval_list << {:minute => start_time.to_i} # end