class HTMLClassMerge::ImportantGroupedTokens
- HTMLClassMerge::ImportantGroupedTokens
- Reference
- Object
Overview
Represents an ordered list of tokens, which are grouped by arbitrary strings, and can also be marked as important. Only one token per group is stored.
Defined in:
html_class_merge/important_grouped_tokens.crInstance Method Summary
-
#add!(token : String, group : Symbol | String, important : Bool = false) : self
Add the token to the group, optionally marking it as important, If there is no group known for the token, use the token itself as the group
-
#remove!(group : Symbol | String, override_important : Bool = false) : self
remove the token for the specified group, unless the token is marked as important if override_important is true, the token for the group will be removed even if it is marked as important
- #tokens : Array(String)
Instance Method Detail
Add the token to the group, optionally marking it as important, If there is no group known for the token, use the token itself as the group
remove the token for the specified group, unless the token is marked as important if override_important is true, the token for the group will be removed even if it is marked as important