Project

General

Profile

Actions

Bug #3617

closed

respond_to?(:gem) is false in 1.9.2-rc2

Added by sunaku (Suraj Kurapati) over 14 years ago. Updated over 13 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.2dev (2010-07-11 revision 28618) [i686-linux]
Backport:
[ruby-core:31485]

Description

=begin
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.
=end


Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #3480: gem_prelude: activation should accomodate for '=' and gem 'gem_name', 'version'Rejectednobu (Nobuyoshi Nakada)06/25/2010Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0