Apocrypha

ruby-enum

A handy way to define enums in Ruby

Enum-like behavior for Ruby. Enums can be defined and accessed either as constants, or class methods, which is a matter of preference. The value is optional. If unspecified, the value will default to the key. Enums support all Enumerable methods.

Available in

OverlayNewestEbuildsLast activity
vowstar GitHub ↗ 0.9.0 1 24 h details ›

Versions & arches

VersionOverlay amd64arm64x86ppc64riscvalphaarmhppappcsparc Committed
0.9.0 vowstar amd64 testing arm64 testing x86 testing ppc64 testing riscv testing alpha testing arm testing hppa testing ppc testing sparc testing 13 mo view · download · history ↗