This is driving me nuts - the Ruby docs mention
REXML::Formatters::Default, REXML::Formatters::Transitive, and
REXML::Formatters::Pretty. Documentation all over the web talks about
using these to format REXML::Documents. But *nothing* I can find
anywhere mentions where this Formatters package is supposed to come
from, and I've looked at 6 different machines with recent Ruby
installations (from 1.8.3 to 1.8.6), several of which aren't mine, and
not a single one of them has this package.
I give up. How on earth are you supposed to get these? Where do they
come from, and why don't I (or anyone I directly know) have them?
Interesting. I guess, then, the answer is likely to re-install Ruby by
compiling from source.
I can't for the life of me imagine why other options leave this out. I
installed Ruby via ports on my Mac. I'm not sure how the Linux and
Solaris boxes had it installed. One of the hosts I checked that
doesn't have them is a Joyent host. Bizarre.
Okay, I've re-installed Ruby by compiling from source. I still don't
have rexml/formatters. Before trying that, I tried "port install rb-
rexml" since I'd installed Ruby from ports (I'm on OS X, Leopard);
that didn't make rexml/formatters appear, either.
What the heck is going on? What's the secret handshake to get rexml/
formatters installed? Anyone?