From 0d3f9dbfe1ab1696d1c9b1ef46c9da4af786e629 Mon Sep 17 00:00:00 2001 From: drbrain Date: Sun, 9 Mar 2008 00:59:23 +0000 Subject: * lib/rdoc/code_objects.rb: Remove debugging Kernel#p. Patch by Lincoln Stoll * lib/rdoc/generator/html.rb: Fully qualify AllReferences. Patch by Lincoln Stoll * lib/rdoc/ri/writer.rb: Fix 1.8 backwards compatibility. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rdoc/ri/writer.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/rdoc/ri') diff --git a/lib/rdoc/ri/writer.rb b/lib/rdoc/ri/writer.rb index 2d14942bdd..92aaa1c2da 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 ## -- cgit v1.2.3