diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-13 03:13:37 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-13 03:13:37 +0000 |
commit | ec519b9b43db7756fcc2c19020ece2d7e2263fe4 (patch) | |
tree | df6a1e6827f788c68e430d44a5ff913a62af6cf7 /lib/rdoc/rdoc.rb | |
parent | 937b7ab8b59346f02da81ef324b8955b01d7cc25 (diff) | |
download | ruby-ec519b9b43db7756fcc2c19020ece2d7e2263fe4.tar.gz |
Complete RDoc namespace change
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/rdoc.rb')
-rw-r--r-- | lib/rdoc/rdoc.rb | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/rdoc/rdoc.rb b/lib/rdoc/rdoc.rb index b376653549..559af5e37a 100644 --- a/lib/rdoc/rdoc.rb +++ b/lib/rdoc/rdoc.rb @@ -57,21 +57,20 @@ module RDoc Generator = Struct.new(:file_name, :class_name, :key) ## - # This is the list of output generators that we - # support + # This is the list of output generator that we support GENERATORS = {} $LOAD_PATH.collect do |d| File.expand_path d end.find_all do |d| - File.directory? "#{d}/rdoc/generators" + File.directory? "#{d}/rdoc/generator" end.each do |dir| - Dir.entries("#{dir}/rdoc/generators").each do |gen| + Dir.entries("#{dir}/rdoc/generator").each do |gen| next unless /(\w+)\.rb$/ =~ gen type = $1 unless GENERATORS.has_key? type - GENERATORS[type] = Generator.new("rdoc/generators/#{gen}", + GENERATORS[type] = Generator.new("rdoc/generator/#{gen}", "#{type.upcase}".intern, type) end @@ -266,7 +265,7 @@ module RDoc require gen.file_name - gen_class = Generators.const_get(gen.class_name) + gen_class = ::RDoc::Generator.const_get gen.class_name gen = gen_class.for(options) pwd = Dir.pwd |