jnewland/pulse — pull request #9 by joergschiller (2013-07-19 12:51:56+00:00)
Title: Check for protected health methods in Ruby 2.0 too.

Starting with Ruby 2.0 respond_to? returns false for protected methods too unless they are included with the second parameter set to true. In older Ruby versions only private methods were excluded this way.

Please see difference between method description:
http://ruby-doc.org/core-2.0/Object.html#method-i-respond_to-3F
http://ruby-doc.org/core-1.9.3/Object.html#method-i-respond_to-3F

Blog post about this topic:
http://tenderlovemaking.com/2012/09/07/protected-methods-and-ruby-2-0.html

Thanks
Jörg