1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
dave 2004-03-24 19:17:42 +00:00
parent aa8658f7b1
commit 3ae6e3ccbf
7 changed files with 75 additions and 8 deletions

View file

@ -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.