module HTMLClass::Substitute
Defined in:
html_class/substitute.crClass Method Summary
-
.possible_key_sets(keys : Array(Symbol)) : Array(Set(Symbol))
return all possible key sets for the given keys
-
.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.
Class Method Detail
def self.possible_key_sets(keys : Array(Symbol)) : Array(Set(Symbol))
#
return all possible key sets for the given keys
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.