Categories: None [Edit]

enum

https://rubygems.org/gems/enum
https://github.com/capnregex/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: 25,952 of 188,189
Downloads: 54,271

Daily

Ranking: 33,405 of 188,174
Downloads: 11

Depended by

RankDownloadsName
42,83627,450nsca
105,5317,255libvirt-ext

Depends on

RankDownloadsName
2,3109,043,289hoe
3,6123,134,510rubyforge

Owners

#GravatarHandle
1iconcapnregex