Friday, November 02, 2007

Renum 0.0.3

This morning at RubyConf I updated Renum so that when the enum declaration appears inside a class or module, the enum class gets nested appropriately. So this works the way you'd expect.

module MyNamespace
  enum :FooValue, [ :Bar, :Baz, :Bat ]
end

I also made EnumeratedValue comparable, where the natural ordering matches the array of value names given in the declaration.

Those features are in renum-0.0.3. (renum-0.0.2 was a botched release where I left a new class out of the gem manifest. Apparently I need to improve my pre-release package verification.)

1 comment:

Luis Rojas said...

This is great work, congratulations!