Cronic::Token
Inherits Reference < Object
Constructors
new(word : String, text : String = "", position : Int32 = 0)
SourceInstance methods
get_tag(tg_class : Class)
tag_class - The tag Class to search for. Returns The first Tag that matches the given class.
has_tag(tg_class : Class)
Sourceinspect
Returns an unambiguous and information-rich string representation of this object, typically intended for developers.
This method should usually not be overridden. It delegates to
#inspect(IO) which can be overridden for custom implementations.
Also see #to_s.
position
Sourcetags
Sourcetext
Sourceuntag(tag_class)
Sourceword
Sourceword=(word : String)
Source