Tag
Scan an Array of Token objects and apply any necessary Ordinal tags to each token.
tokens - An Array of tokens to scan. options - The Hash of options specified in Chronic::parse.
Returns an Array of tokens.
# File lib/chronic/ordinal.rb, line 11 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
Generated with the Darkfish Rdoc Generator 2.