From: "Avdi B. Grimm" Date: 2001-10-21T00:25:56+09:00 Subject: [ruby-talk:22833] C-style enums? does anyone have a ruby module that emulates C enums, so that if you want a bunch of uniquely-enumerated constants you can just say something like: enum( :FOO => 1, :BAR, :BAZ, :BUZ ) ...? I thought I saw something like this awhile ago, but maybe I was mistaken... it should be trivial to implement; but I didn't want to code it if someone else already had. ~Avdi