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: 24,483 of 180,643
Downloads: 49,697

Daily

Ranking: 39,725 of 180,629
Downloads: 7

Depended by

RankDownloadsName
41,08124,922nsca
102,2106,618libvirt-ext

Depends on

RankDownloadsName
1,9638,427,866hoe
3,1792,995,169rubyforge

Owners

#GravatarHandle
1iconcapnregex