summaryrefslogtreecommitdiffstats
path: root/lib/rdoc/ri
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-03-09 00:59:23 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-03-09 00:59:23 +0000
commit94faf2cb81ca64615817255df4a022cb659d6875 (patch)
treea3b44d981ac9cf72d76b5c66ad4f1be9f0d018ff /lib/rdoc/ri
parentf0753aabcf009ee6ce7ddd9a1bd875d8f972d563 (diff)
downloadruby-94faf2cb81ca64615817255df4a022cb659d6875.tar.gz
ruby-94faf2cb81ca64615817255df4a022cb659d6875.tar.xz
ruby-94faf2cb81ca64615817255df4a022cb659d6875.zip
* lib/rdoc/code_objects.rb: Remove debugging Kernel#p. Patch by Lincoln Stoll
<lstoll at lstoll.net> * lib/rdoc/generator/html.rb: Fully qualify AllReferences. Patch by Lincoln Stoll <lstoll at lstoll.net> * lib/rdoc/ri/writer.rb: Fix 1.8 backwards compatibility. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/ri')
-rw-r--r--lib/rdoc/ri/writer.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/rdoc/ri/writer.rb b/lib/rdoc/ri/writer.rb
index 2d14942bd..92aaa1c2d 100644
--- a/lib/rdoc/ri/writer.rb
+++ b/lib/rdoc/ri/writer.rb
@@ -12,7 +12,11 @@ class RDoc::RI::Writer
# form (where punctuation is replaced by %xx)
def self.internal_to_external(name)
- name.gsub(/\W/) { "%%%02x" % $&[0].ord }
+ if ''.respond_to? :ord then
+ name.gsub(/\W/) { "%%%02x" % $&[0].ord }
+ else
+ name.gsub(/\W/) { "%%%02x" % $&[0] }
+ end
end
##