Skip to content

Instantly share code, notes, and snippets.

@coldnebo
Created February 17, 2011 19:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coldnebo/832527 to your computer and use it in GitHub Desktop.
Save coldnebo/832527 to your computer and use it in GitHub Desktop.
blog: example of possible ruby xml marshaling...
<foo>
<bar @mike="hi">
<ug>what</ug>
<ug>who</ug>
</bar>
</foo>
> foo.bar.mike # = "hi"
> foo.bar.ug # = ["what", "who]
> foo.bar.ug[0] # = "what"
@coldnebo
Copy link
Author

coldnebo commented Nov 5, 2011

referred to by my blog article about marshalling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment