module Prostore::Schema::NameConversion

Overview

Translate a Crystal enum member's source-level name to the wire form selected by the field's naming: option (ADR-0017). Pure function; the macro calls this once per member when synthesising the schema record so the result is cached for the lifetime of the process.

The conversions are deliberately conservative:

Extended Modules

Defined in:

prostore/schema/enum_member.cr

Instance Method Summary

Instance Method Detail

def apply(name : String, algorithm : Symbol) : String #

[View source]