class HTMLClassMerge::ImportantGroupedTokens

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.cr

Instance Method Summary

Instance Method Detail

def 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


[View source]
def 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


[View source]
def tokens : Array(String) #

[View source]