Skip to content

Commit

Permalink
Revert changes to irb/completion.rb, which were related to Java packa…
Browse files Browse the repository at this point in the history
…ge modules and not ObjectSpace. See JRUBY-2186.
  • Loading branch information
headius committed Apr 6, 2010
1 parent 320a71f commit 892ccbc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/ruby/1.8/irb/completion.rb
Expand Up @@ -154,6 +154,9 @@ module InputCompletor
# func1.func2
candidates = []
ObjectSpace.each_object(Module){|m|
# JRuby specific (JRUBY-2186)
next unless m.respond_to?(:instance_methods)

begin
name = m.name
rescue Exception
Expand Down

0 comments on commit 892ccbc

Please sign in to comment.