Support for defining enumerated types in Ruby