Closed gi closed 3 years ago
Allow define to optionally accept a value.
define
If no value is given, the value will default to the key:
class A include Ruby::Enum define :X end A::X == :X
Allow
define
to optionally accept a value.If no value is given, the value will default to the key: