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 | 3ae6e3ccbf0d51c6f90a3e4f95d81a46e304a66b (patch) | |
tree | 78419a54f87aee17e7f6a79f65b166d26f3dc010 /lib/rdoc/ri/ri_cache.rb | |
parent | aa8658f7b145db8afd19f96e329438aeee08bd0d (diff) |
Add the --list-names option
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@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 8d7c982409..189817485b 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. |