class Chronic::RepeaterHour
def this(pointer = :future)
def this(pointer = :future) super case pointer when :future hour_start = Time.construct(@now.year, @now.month, @now.day, @now.hour, @now.min + 1) hour_end = Time.construct(@now.year, @now.month, @now.day, @now.hour + 1) when :past hour_start = Time.construct(@now.year, @now.month, @now.day, @now.hour) hour_end = Time.construct(@now.year, @now.month, @now.day, @now.hour, @now.min) when :none hour_start = Time.construct(@now.year, @now.month, @now.day, @now.hour) hour_end = hour_begin + HOUR_SECONDS end Chronic::Span.new(hour_start, hour_end) end