diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-10 22:28:42 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-10 22:28:42 +0000 |
commit | cc270341f95c83febba2b22f34fa7b2296345341 (patch) | |
tree | e1dd43c4ccd35c32b4950d36f655749443a208a8 /lib/rdoc | |
parent | cfe19587b22ad1aeea11c9e8575f233238cbe4cd (diff) | |
download | ruby-cc270341f95c83febba2b22f34fa7b2296345341.tar.gz ruby-cc270341f95c83febba2b22f34fa7b2296345341.tar.xz ruby-cc270341f95c83febba2b22f34fa7b2296345341.zip |
* lib/rdoc/ri/ri_writer.rb: use String#ord.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc')
-rw-r--r-- | lib/rdoc/ri/ri_writer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rdoc/ri/ri_writer.rb b/lib/rdoc/ri/ri_writer.rb index f1042fba7..032558ed1 100644 --- a/lib/rdoc/ri/ri_writer.rb +++ b/lib/rdoc/ri/ri_writer.rb @@ -13,7 +13,7 @@ module RI # by %xx) def RiWriter.internal_to_external(name) - name.gsub(/\W/) { "%%%02x" % $&[0].unpack('C') } + name.gsub(/\W/) { "%%%02x" % $&[0].ord } end # And the reverse operation |