Fix respond_to? method for ruby 2.0

respond_to? returns false for protected methods in Ruby 2.0