class Cronic::Token
- Cronic::Token
- Reference
- Object
Defined in:
cronic/token.crConstructors
Instance Method Summary
-
#==(token)
Returns
false
(other can only be aValue
here). -
#get_tag(tg_class : Class)
tag_class - The tag Class to search for.
- #has_tag(tg_class : Class)
-
#inspect
Returns an unambiguous and information-rich string representation of this object, typically intended for developers.
- #position : Int32
-
#tag(new_tag : Tag | Nil)
Tag this token with the specified tag.
-
#tagged? : Bool
Returns true if this token has any tags.
- #tags : Array(Cronic::Tag)
- #tags=(tags : Array(Cronic::Tag))
- #text : String
-
#to_s : String
Print this Token in a pretty way
- #untag(tag_class)
- #word : String
- #word=(word : String)
Constructor Detail
Instance Method Detail
Returns false
(other can only be a Value
here).
tag_class - The tag Class to search for. Returns The first Tag that matches the given class.
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
.
Tag this token with the specified tag. Returns nothing.