Class Chronic::Token
In: lib/chronic/token.rb
Parent: Object

Methods

get_tag   new   tag   tagged?   to_s   untag  

Attributes

tags  [RW]  @return [Array] A list of tag associated with this Token
word  [RW]  @return [String] The word this Token represents

Public Class methods

Public Instance methods

@param [Class] tag_class The tag class to search for @return [Tag] The first Tag that matches the given class

Tag this token with the specified tag

@param [Tag] new_tag An instance of {Tag} or one of its subclasses

@return [Boolean] true if this token has any tags

Print this Token in a pretty way

Remove all tags of the given class

@param [Class] The tag class to remove

[Validate]