What’s the best way to implement the enum idiom in Ruby? I’m looking for something which I can use (almost) like the Java/C# enums.

25 Answers
25

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *