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

Update to RDoc 2.1.0 r112

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
drbrain 2008-07-21 18:35:14 +00:00
parent c62db0676b
commit cd9e9c6deb
19 changed files with 460 additions and 285 deletions

View file

@ -16,12 +16,8 @@ class RDoc::Generator::RI
new(options)
end
class << self
protected :new
end
##
# Set up a new RDoc::Generator::RI.
# Set up a new ri generator
def initialize(options) #:not-new:
@options = options
@ -52,11 +48,12 @@ class RDoc::Generator::RI
end
def generate_class_info(cls)
if cls === RDoc::NormalModule
case cls
when RDoc::NormalModule then
cls_desc = RDoc::RI::ModuleDescription.new
else
cls_desc = RDoc::RI::ClassDescription.new
cls_desc.superclass = cls.superclass
cls_desc.superclass = cls.superclass
end
cls_desc.name = cls.name