Compatibility with ruby 2.0

Passing true as second argument to respond_to? to check for protected methods in Ruby 2.0.