tag_class - The tag Class to search for.
Returns The first Tag that matches the given class.
# File lib/chronic/token.rb, line 38 def get_tag(tag_class) @tags.find { |m| m.kind_of? tag_class } end
Returns true if this token has any tags.
# File lib/chronic/token.rb, line 31 def tagged? @tags.size > 0 end
Print this Token in a pretty way
# File lib/chronic/token.rb, line 43 def to_s @word << '(' << @tags.join(', ') << ') ' end
Generated with the Darkfish Rdoc Generator 2.