mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rdoc/*, test/rdoc/*: Update rdoc-5.0.0
Release note: b825775647/History.rdoc (500--2016-11-05)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0a0eb2807e
commit
cdc527db34
27 changed files with 62 additions and 144 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue