mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
fc7c053244
commit
85c86a4e29
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Sun Jun 11 07:27:11 2006 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/rdoc/ri/ri_writer.rb: use String#ord.
|
||||||
|
|
||||||
Sun Jun 11 04:38:20 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Sun Jun 11 04:38:20 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* object.c (sym_to_proc): imported Symbol#to_proc from ActiveSupprot.
|
* object.c (sym_to_proc): imported Symbol#to_proc from ActiveSupprot.
|
||||||
|
@ -29,7 +33,7 @@ Sat Jun 10 10:13:13 2006 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
* lib/rdoc/markup/simple_markup/inline.rb: follow the new behavior
|
* lib/rdoc/markup/simple_markup/inline.rb: follow the new behavior
|
||||||
of String#[].
|
of String#[].
|
||||||
|
|
||||||
* lib/rdoc/ri/ri_write.rb: ditto.
|
* lib/rdoc/ri/ri_writer.rb: ditto.
|
||||||
|
|
||||||
Sat Jun 10 08:17:23 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Sat Jun 10 08:17:23 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ module RI
|
||||||
# by %xx)
|
# by %xx)
|
||||||
|
|
||||||
def RiWriter.internal_to_external(name)
|
def RiWriter.internal_to_external(name)
|
||||||
name.gsub(/\W/) { "%%%02x" % $&[0].unpack('C') }
|
name.gsub(/\W/) { "%%%02x" % $&[0].ord }
|
||||||
end
|
end
|
||||||
|
|
||||||
# And the reverse operation
|
# And the reverse operation
|
||||||
|
|
Loading…
Reference in a new issue