summaryrefslogtreecommitdiff
path: root/lib/rdoc/ri/ri_cache.rb
diff options
context:
space:
mode:
authordave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-03-24 19:17:42 +0000
committerdave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-03-24 19:17:42 +0000
commite147632bffc50fd33f5b5d6f5716e3627985c0d1 (patch)
tree6fe0f58e188d534e5e0aea0661119dfb4b6a2a94 /lib/rdoc/ri/ri_cache.rb
parent16040850af57472ad0ec20fb9f86277c9527458d (diff)
Add the --list-names option
git-svn-id: svn+ssh://ci.ruby-lang.org/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.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/rdoc/ri/ri_cache.rb b/lib/rdoc/ri/ri_cache.rb
index 8d7c982409d..189817485b9 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.