RubyGems Navigation menu

string_enums 1.0.0

StringEnum is a concern that makes it easy to work with enums. Include the module, then invoke

the class method string_enum with the attribute name followed by the list of valid values. This will add checks, writers, and constants for each value.

Gemfile:
=

instalar:
=

Versiones:

  1. 1.0.0 August 19, 2017 (6,5 KB)

dependencias de Runtime (1):

activesupport >= 3.0.0

Propietarios:

Autores:

  • Todd Kummer

SHA 256 checksum:

=

Total de descargas 5.899

Para esta versión 5.899

Versión publicada:

Licencia:

BSD 3-clause

Versión de Ruby requerida: >= 0

Versión de Rubygems requerida: >= 1.2.0

Enlace: