To_json / to_xml: where to find?

I’m trying to use to_xls, but are running into documentation problems:
Instead of completely describing the options, the author writes:

“The builder options are the same as to_json / to_xml, except for the
:include.”

The same did the guy who wrote to_csv. Really great.

I can’t find neither to_json nor to_xml. Where to find these gems?

On Mon, Sep 20, 2010 at 8:20 AM, Fritz T. [email protected] wrote:

I’m trying to use to_xls, but are running into documentation problems:
Instead of completely describing the options, the author writes:

 “The builder options are the same as to_json / to_xml, except for the
:include.”

The same did the guy who wrote to_csv. Really great.

I can’t find neither to_json nor to_xml. Where to find these gems?

At least to_json is part of the json library in stdlib, docs at:
http://ruby-doc.org/ruby-1.9/classes/JSON/Ext/Generator/GeneratorMethods/Hash.html