Fix generator for Ruby 2.0.
Merge pull request #186 from bryantraywick/fix-generator-for-ruby-2

Fix generator for Ruby 2.0.