diff options
| author | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-03-24 19:17:42 +0000 |
|---|---|---|
| committer | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-03-24 19:17:42 +0000 |
| commit | a8784ba423c6adf01b636972049c2f428eda2621 (patch) | |
| tree | 6fe0f58e188d534e5e0aea0661119dfb4b6a2a94 /lib/rdoc/ri/ri_cache.rb | |
| parent | e842f4ccccbeff60068670125ba027880529a2f4 (diff) | |
| download | ruby-a8784ba423c6adf01b636972049c2f428eda2621.tar.gz ruby-a8784ba423c6adf01b636972049c2f428eda2621.tar.xz ruby-a8784ba423c6adf01b636972049c2f428eda2621.zip | |
Add the --list-names option
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/ri/ri_cache.rb')
| -rw-r--r-- | lib/rdoc/ri/ri_cache.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/rdoc/ri/ri_cache.rb b/lib/rdoc/ri/ri_cache.rb index 8d7c98240..189817485 100644 --- a/lib/rdoc/ri/ri_cache.rb +++ b/lib/rdoc/ri/ri_cache.rb @@ -87,6 +87,13 @@ module RI res << @name end + # Return a list of all out method names + def all_method_names + res = @class_methods.map {|m| m.full_name } + @instance_methods.each {|m| res << m.full_name} + res + end + private # Return a list of all our methods matching a given string. |
