public
Last active

  • Download Gist
result using my transformer
1 2 3 4 5 6 7 8 9 10 11 12 13
<?xml version="1.0"?>
<playlist>
<traklist>
<track>
<name>First Track!</name>
<author>Who is it?</author>
</track>
<track>
<name>My contribution</name>
<author>Me</author>
</track>
</traklist>
</playlist>
rules.yaml
YAML
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
---
:playlist:
- []
- - //playlist
- //pl
- :traklist:
- []
- - tracklist
- tl
- :track:
- - :optional
- - track
- :name:
- - :copy_content
- - name
- n_t
:author:
- - :copy_content
- - author
- a_t
yaml loader
1
transformer = Transformer.new( YAML::load_file("rules.yaml") )

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.