annotation MappedValues

Overview

Annotation for attaching arbitrary value mappings to Enum types.

When applied, a positional arg must exist for each enum member

@[MappedValues("foo", "bar", 42)]
enum Foo
  A
  B
  C
end

Defined in:

mapped_enum/mapped_enum.cr