Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v1_9_1_378) is shown here.
internal_to_external(name)
public
Convert a name from internal form (containing punctuation) to an external
form (where punctuation is replaced by %xx)
# File lib/rdoc/ri/writer.rb, line 14
def self.internal_to_external(name)
if ''.respond_to? :ord then
name.gsub(/\W/) { "%%%02x" % $&[0].ord }
else
name.gsub(/\W/) { "%%%02x" % $&[0] }
end
end