eriq-augustine / clefable

IRC Chatbot
6 stars 0 forks source link

Make and enum definer in ClassUtil #134

Open eriq-augustine opened 11 years ago

eriq-augustine commented 11 years ago

Something like: ENUM(startVal, ['A', 'B', 'C'])

or maybe... ENUM([{:name => 'A', :val => 0}, {:name => 'B', :val => 1}]) If this one, make sure to CHECK that vals do not overlap.