Categories: None [Edit]
enum
A java like Enum class for ruby.
A while ago I was exploring Java, and came across the Enum class, which had
some interesting functionality, and I decided that I would like something like
it.
Conceptually if you just need a unique identifier you may be perfectly happy using a :symbol, and that would likely be a simpler way of having a controll flag. However, if you want to have a set of unique identifiers that you can address, iterate over, assign properties to, etc, then this may be something you would be interested in.
Total
Ranking: 24,903 of 183,682
Downloads: 51,888
Daily
Ranking: 22,515 of 183,669
Downloads: 6
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|---|---|
41,793 | 25,834 | nsca |
103,476 | 6,840 | libvirt-ext |
Owners
# | Gravatar | Handle |
---|---|---|
1 | capnregex |