Provides a lightweight solution for object-oriented enumerations in Ruby in a similar ways as other languages, like Java, do. It consists of a single class (Enum), that can be subclassed to create enumerated types. Each class has a set of predefined instances, that represent the enumerated values. Fatures like support for inheritance and declaring instance methods on enumerated values are supported as well.
Required Ruby Version
~> 2.0
Authors
Michele Piccirillo
Versions
-
0.1.2
-
source
- 0.1.2 source April 19, 2017 (11.5 KB)
-
-
0.1.1
-
source
- 0.1.1 source April 19, 2017 (11 KB)
-
-
0.1.0
-
source
- 0.1.0 source April 19, 2017 (10.5 KB)
-