Implementation of an enum for Ruby (on Rails).