Ascii.Registry (Ascii v0.3.0)

Copy Markdown View Source

Every piece, by its upstream file name.

An explicit map from slug to module, written out rather than discovered, so the set of pieces is what this file says and a slug from input is only ever looked up, never turned into an atom or a module name.

Summary

Functions

Every {slug, module}, sorted by slug.

The module for a slug.

The slug of a registered module.

Every slug, sorted.

Functions

all()

@spec all() :: [{String.t(), module()}]

Every {slug, module}, sorted by slug.

fetch(slug)

@spec fetch(slug :: String.t()) :: {:ok, module()} | :error

The module for a slug.

slug(module)

@spec slug(module :: module()) :: {:ok, String.t()} | :error

The slug of a registered module.

slugs()

@spec slugs() :: [String.t()]

Every slug, sorted.