.to_xml defined for Arrays, but not Strings? What?

Jenda Krynicky wrote:

Oops, sorry.

require 'rexml/document'
REXML::Text::normalize(...)

lovely. normalize(). Sure. Why not wrooblify()? When it comes to names the Ruby folk is really inventive.

Uh, the Ruby folks didn't come up with 'normalize', the w3c did:

http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-normalize

It's always seemed like a perfectly descriptive term to me.

b