Bug #3617: respond_to?(:gem) is false in 1.9.2-rc2
http://redmine.ruby-lang.org/issues/show/3617

Author: Suraj Kurapati
Status: Open, Priority: Normal
ruby -v: ruby 1.9.2dev (2010-07-11 revision 28618) [i686-linux]

Please compare the new behavior:

## ruby 1.9.2dev (2010-07-11 revision 28618) [i686-linux]
>> respond_to? :gem
=> false
>> method :gem
=> #<Method: Object(Kernel)#gem>

Against the old behavior:

## ruby 1.9.1p429 (2010-07-02 revision 28523) [i686-linux]
>> respond_to? :gem
=> true
>> method :gem
=> #<Method: Object(Kernel)#gem>

I think the new behavior is strange.  How 
can #respond_to? fail when #method succeeds?

Thanks for your consideration.


----------------------------------------
http://redmine.ruby-lang.org