clean up syntax in enum.rb
Merge pull request #3196 from kodnin/clean-up-enum.rb

clean up syntax in enum.rb