class Chronic::Separator

def self.scan(tokens, options)

Returns:
  • (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_commas(token) then token.tag(t); next end
    if t = scan_for_slash_or_dash(token) then token.tag(t); next end
    if t = scan_for_at(token) then token.tag(t); next end
    if t = scan_for_in(token) then token.tag(t); next end
    if t = scan_for_on(token) then token.tag(t); next end
  end
end