Xoxo-rb 0.1.0 (also: [SOLUTION])


For this week’s Ruby quiz, I ported xoxo.py and the result is:

= xoxo.rb, a XOXO parser and generator for Ruby

== What is xoxo.rb?

xoxo.rb is a Ruby library for loading and dumping data as
XOXO[http://microformats.org/wiki/xoxo], an simple, open outline
format written in standard XHTML and suitable for embedding in
(X)HTML, Atom, RSS, and arbitrary XML.

xoxo.rb is a straight port of the functionality of
xoxo.py[http://microformats.org/wiki/xoxo-sample-code#Python], but
with an API more similar to Marshal and YAML.

== Current limitations

  • No special support for encodings other than UTF-8. Especially note
    that http-equiv headers are not respected.

  • XOXO.dump only can dump these Ruby core classes:

    • String
    • Array
    • Hashes that have string (+to_s+) keys
      Other objects will be flattened with +to_s+.

== Contact

Please mail bugs, suggestions and patches to
mailto:[email protected].

Darcs repository (“darcs send” is welcome for patches):

== History

January 29, 2006:: First public release 0.1, written for the
{Ruby Q. #64}[http://rubyquiz.com/quiz64.html].

== Copyright

Copyright © 2006 Christian N.

This work is licensed under the same terms as Ruby itself.

This work is indirectly based on xoxo.py, written by Kevin Marks
mailto:[email protected].

Please mail bugs, feature requests or patches to the mail addresses
found above or use IRC[irc://freenode.net/#ruby-lang] to contact the

Download xoxo-rb 0.1.0 now at:


b54d7ff07a9eb6d5db45087c688fecc5 xoxo-rb-0.1.0.tar.gz

Happy hacking,

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs