Class Chronic::Repeater
In: lib/chronic/repeater.rb
Parent: Tag

Methods

Public Class methods

Scan an Array of {Token}s and apply any necessary Repeater tags to each token

@param [Array<Token>] tokens Array of tokens to scan @param [Hash] options Options specified in {Chronic.parse} @return [Array] list of tokens

@param [Token] token @return [RepeaterDayName, nil]

@param [Token] token @return [RepeaterDayPortion, nil]

@param [Token] token @return [RepeaterMonthName, nil]

@param [Token] token @return [RepeaterSeasonName, nil]

@param [Token] token @return [RepeaterTime, nil]

@param [Token] token @return [Repeater] A new instance of a subclass of Repeater

Public Instance methods

returns the next occurance of this repeatable.

returns the width (in seconds or months) of this repeatable.

[Validate]