Had to make to_enum conditioned on RUBY_VERSION.
Test against more versions of Ruby. [admin]