aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rdoc/store.rb
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-27 08:54:03 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-27 08:54:03 +0000
commit6d1266a879a94a6f76106e1bbdfa3576b6612a69 (patch)
tree5c88a98d9e588861138e63be7d45353627dcab43 /lib/rdoc/store.rb
parent7de9e2dfdeefeefe6c3d4ff9ebafa8c947eca33f (diff)
downloadruby-6d1266a879a94a6f76106e1bbdfa3576b6612a69.tar.gz
* lib/rdoc/*: Added --root option for building documentation outside
the source directory. * test/rdoc/*: ditto * common.mk (rdoc): Added --root to rdoc rule git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/store.rb')
-rw-r--r--lib/rdoc/store.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/rdoc/store.rb b/lib/rdoc/store.rb
index ee58a4d873..00c1010802 100644
--- a/lib/rdoc/store.rb
+++ b/lib/rdoc/store.rb
@@ -139,11 +139,11 @@ class RDoc::Store
# Adds the file with +name+ as an RDoc::TopLevel to the store. Returns the
# created RDoc::TopLevel.
- def add_file name
- unless top_level = @files_hash[name] then
- top_level = RDoc::TopLevel.new name
+ def add_file absolute_name, relative_name = absolute_name
+ unless top_level = @files_hash[relative_name] then
+ top_level = RDoc::TopLevel.new absolute_name, relative_name
top_level.store = self
- @files_hash[name] = top_level
+ @files_hash[relative_name] = top_level
end
top_level