class Chronic::Tag
they match specific criteria.
Tokens are tagged with subclassed instances of this class when
def initialize(type, options = {})
def initialize(type, options = {}) @type = type @options = options end
def scan_for(token, klass, items={}, options = {})
def scan_for(token, klass, items={}, options = {}) case items when Regexp return klass.new(token.word, options) if items =~ token.word when Hash items.each do |item, symbol| return klass.new(symbol, options) if item =~ token.word end end nil end
def start=(time)
def start=(time) @now = time end