mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
cached rdoc diagrams, private rdoc comments, minor clarifications in debug.rb and pp.rb
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8e1789ded7
commit
2bf2f48a0b
7 changed files with 55 additions and 18 deletions
|
@ -137,9 +137,10 @@ module IRB
|
|||
else
|
||||
# func1.func2
|
||||
candidates = []
|
||||
name = m.name rescue ""
|
||||
ObjectSpace.each_object(Module){|m|
|
||||
next if m.name != "IRB::Context" and
|
||||
/^(IRB|SLex|RubyLex|RubyToken)/ =~ m.name
|
||||
next if name != "IRB::Context" and
|
||||
/^(IRB|SLex|RubyLex|RubyToken)/ =~ name
|
||||
candidates.concat m.instance_methods(false)
|
||||
}
|
||||
candidates.sort!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue