Ruby ROXML - how to get an array to render its xml?
- by Brian D.
I'm trying to create a Messages object that inherits Array. The messages will gather a group of Message objects. I'm trying to create an xml output with ROXML that looks like this:
<messages>
<message>
<type></type>
<code></code>
<body></body>
</message>
...…