Ruby 2.0 compatibility

Three cheers for Ruby 2.0!