diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-05 09:18:10 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-05 09:18:10 +0000 |
commit | bb8c0cf3c9cb6c0f637cb754bd52be77d2dac2e0 (patch) | |
tree | 237c953b345a00333d1600706a7f2484b4ad408c /lib/rdoc/store.rb | |
parent | 7ab1f709db436deecb4aed8f26d4dd844b4e25c8 (diff) | |
download | ruby-bb8c0cf3c9cb6c0f637cb754bd52be77d2dac2e0.tar.gz |
* lib/rdoc/*, test/rdoc/*: Update rdoc-5.0.0
Release note: https://github.com/rdoc/rdoc/blob/b825775647f62c5b525e9780a28ff2fbb1d5bf6f/History.rdoc#500--2016-11-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/store.rb')
-rw-r--r-- | lib/rdoc/store.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/rdoc/store.rb b/lib/rdoc/store.rb index 37bf03fc24..aaefff8f13 100644 --- a/lib/rdoc/store.rb +++ b/lib/rdoc/store.rb @@ -679,12 +679,7 @@ class RDoc::Store method_name =~ /#(.*)/ method_type = $1 ? 'i' : 'c' method_name = $1 if $1 - - method_name = if ''.respond_to? :ord then - method_name.gsub(/\W/) { "%%%02x" % $&[0].ord } - else - method_name.gsub(/\W/) { "%%%02x" % $&[0] } - end + method_name = method_name.gsub(/\W/) { "%%%02x" % $&[0].ord } File.join class_path(klass_name), "#{method_name}-#{method_type}.ri" end |