All blog posts tagged with enumeration

Ruby Enumerations

Posted July 15, 2009

It's no secret that Ruby's lack of an enumeration type is a real pain in the ass. I needed better control over parameters than simply value-checking (so much for "less code", eh fan-boys?)

Using Ruby's peculiar OO model, I was able to create a class which acts similar to Java's enum type.

#
# This i…

Read more

Displaying 1 post

Visit my Friends and Family

If you've enjoyed my site, please take a moment to visit my friends and family, many of whom have some interesting insights, and entertaining thoughts and ideas.