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 | 85c86a4e294aeee92b78c075628ec88cdf54d1ea (patch) | |
tree | e1dd43c4ccd35c32b4950d36f655749443a208a8 /lib | |
parent | fc7c0532444a66dc868a0c9a504a98d3c7080ef2 (diff) | |
download | ruby-85c86a4e294aeee92b78c075628ec88cdf54d1ea.tar.gz |
* lib/rdoc/ri/ri_writer.rb: use String#ord.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-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 f1042fba79..032558ed1c 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 |