module HTMLClass::Substitute

Defined in:

html_class/substitute.cr

Class Method Summary

Class Method Detail

def self.possible_key_sets(keys : Array(Symbol)) : Array(Set(Symbol)) #

return all possible key sets for the given keys


[View source]
def self.substitute(tokens : Array(Symbol | String), dictionary : Dictionary) : Array(String) #

given an array of tokens, and dictionary, substitute any keys in the dictionary with their corresponding values. also look up combinations of keys, and add those to the list of tokens.


[View source]