class Chronic::Ordinal
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_ordinals(token) then token.tag(t) end if t = scan_for_days(token) then token.tag(t) end end end