class HTMLClassMerge::TailwindMerge
- HTMLClassMerge::TailwindMerge
- HTMLClassMerge::GroupedMerge
- Reference
- Object
Defined in:
html_class_merge/tailwind_merge.crInstance Method Summary
-
#important_token(token : String) : Tuple(Bool, String)
in tailwind, important classes are prefixed with "!"
-
#merge(*html_classes : Tokenizable) : String
Merge the given html classes into a single string
-
#scoped_token(token : String) : Tuple(String, String)
in tailwind, the scope is a prefix of one or more tokens separated by ":", followed by ":"
Instance methods inherited from class HTMLClassMerge::GroupedMerge
clone
clone,
group_for?(*args, **options)group_for?(*args, **options, &) group_for?, group_registry : GroupRegistry group_registry, groups_replaced_by?(*args, **options)
groups_replaced_by?(*args, **options, &) groups_replaced_by?, merge(*html_classes : Tokenizable) : String merge, register(*args, **kwargs) register, register!(merger : GroupedMerge)
register!(*args, **kwargs) register!
Instance methods inherited from module HTMLClassMerge::Tokenize
tokenize(tokens : Enumerable(String)) : Array(String)tokenize(tokens : String) : Array(String)
tokenize(*tokens : Tokenizable) : Array(String) tokenize
Instance methods inherited from module HTMLClassMerge::Merge
merge(*tokens : Tokenizable) : String
merge
Instance Method Detail
def important_token(token : String) : Tuple(Bool, String)
#
in tailwind, important classes are prefixed with "!"
def merge(*html_classes : Tokenizable) : String
#
Description copied from class HTMLClassMerge::GroupedMerge
Merge the given html classes into a single string
def scoped_token(token : String) : Tuple(String, String)
#
in tailwind, the scope is a prefix of one or more tokens separated by ":", followed by ":"