class Chronic::Repeater
def self.scan(tokens, options)
-
(Array)
- list of tokens
Parameters:
-
options
(Hash
) -- Options specified in {Chronic.parse} -
tokens
(Array
) -- Array of tokens to scan
def self.scan(tokens, options) tokens.each do |token| if t = scan_for_season_names(token) then token.tag(t); next end if t = scan_for_month_names(token) then token.tag(t); next end if t = scan_for_day_names(token) then token.tag(t); next end if t = scan_for_day_portions(token) then token.tag(t); next end if t = scan_for_times(token) then token.tag(t); next end if t = scan_for_units(token) then token.tag(t); next end end end