to_json / to_xml: where to find?

Discussion in 'Ruby' started by Fritz Trapper, Sep 20, 2010.

  1. 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?
     
    Fritz Trapper, Sep 20, 2010
    #1
    1. Advertisements

  2. 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/Ha=
    sh.html

    --=20
    Michael Fellinger
    CTO, The Rubyists, LLC
     
    Michael Fellinger, Sep 20, 2010
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.