--pgp-sign-Multipart_Wed_Jul__7_11:39:18_2010-1
Content-Type: text/plain; charset=US-ASCII

At Wed, 7 Jul 2010 02:31:28 +0900,
Marc-Andre Lafortune wrote:
> Looking more closely at the change, it is not what I expected.
>
>   class C
>     protected
>     def is_protected; end
>   end
>
>   C.new.respond_to?(:is_protected, true) # false, I expected true
>
> I feel that either `C.new.respond_to?(:is_protected, true)` should
> return true, or else there should be another way to ask if a method
> respond_to a protected method, say like
> `C.new.respond_to?(:is_protected, :any)`

True.  That was missing from my test cases.  Thanks for point it out.

> Here's a patch for the first option.

I'll commit it later today with some test cases.

--
Akinori MUSHA / http://akinori.org/

--pgp-sign-Multipart_Wed_Jul__7_11:39:18_2010-1
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (FreeBSD)

iEYEABECAAYFAkwz6NYACgkQkgvvx5/Z4e5ILQCgz1FIJ9NPUYZIccTf3qpaEFuC
rkAAmgNxHUjScgtql1z/AzN326yHtdqD
SA
-----END PGP SIGNATURE-----

--pgp-sign-Multipart_Wed_Jul__7_11:39:18_2010-1--