Parent

Methods

Fixnum

Enhance the Fixnum class with a XML escaped character conversion.

Constants

XChar

Public Instance Methods

xchr() click to toggle source

XML escaped version of chr

# File lib/builder/xchar.rb, line 93
def xchr
  n = XChar::CP1252[self] || self
  case n when *XChar::VALID
    XChar::PREDEFINED[n] or (n<128 ? n.chr : "&##{n};")
  else
    '*'
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.