Parent

Methods

String

                                                                    

Enhance the String class with a XML escaped character version of to_s.

Public Instance Methods

to_xs() click to toggle source

XML escaped version of to_s

     # File lib/builder/xchar.rb, line 110
110:   def to_xs
111:     unpack('U*').map {|n| n.xchr}.join # ASCII, UTF-8
112:   rescue
113:     unpack('C*').map {|n| n.xchr}.join # ISO-8859-1, WIN-1252
114:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.