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

Forgot to save buffer.... sigh

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
dave 2003-12-24 04:24:29 +00:00
parent 52975bb7a7
commit f0346bd249
14 changed files with 1751 additions and 1340 deletions

View file

@ -52,5 +52,19 @@ module RI
File.open(path) {|f| RI::Description.deserialize(f) }
end
# return the names of all classes and modules
def class_names
res = []
find_classes_in(res, @cache.toplevel)
end
def find_classes_in(res, klass)
classes = klass.classes_and_modules
for c in classes
res << c.name
find_classes_in(res, c)
end
res
end
end
end