class Mint::NamePool(T, B)

Overview

This is a name pool. It returns a unique identifier for a given item of a given base item.

In Mint it's used to get variable names for blocks of selectors and CSS properties.

Defined in:

utils/name_pool.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(initial : String = 'a'.pred.to_s) #

[View source]

Instance Method Detail

def next_name(subject : T, base : B) #

[View source]
def of(subject : T, base : B) #

[View source]