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.
Required Ruby Version
>= 0
Required Rubygems Version
>= 1.2.0
Authors
Todd Kummer
Versions
- 1.0.0 August 19, 2017 (6.5 KB)