Fix generator for Ruby 2.0.