Registry / utility / ruby-enum

ruby-enum

JSON →
library1.0.0rbrubygemsunverified

Provides enum-like behavior for Ruby classes.

gem install ruby-enum
INSTALL
IMPORT
SIG · RUBY-ENUM
R
ruby-enum
utilityrubyv1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Ruby::Enum
require 'ruby-enum'

Define an enum with constants

require 'ruby-enum' class Color include Ruby::Enum define :RED, 'red' define :BLUE, 'blue' end Color::RED
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
ruby-enum — gem install ruby-enum · libregistry