diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2009-09-29 10:17:15 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2009-09-29 10:17:15 -0700 |
commit | 75fdcc42bb2ce2abb206f01b8e90729dedc8286c (patch) | |
tree | 4c69fbc6f75718e6ab701fb8e9d886c36737d586 /lib | |
parent | d2bf942ac38b1b6e91116a06855a00d32b95d27b (diff) | |
download | psych-75fdcc42bb2ce2abb206f01b8e90729dedc8286c.zip |
mapping tested
Diffstat (limited to 'lib')
-rw-r--r-- | lib/psych/visitors/emitter.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/psych/visitors/emitter.rb b/lib/psych/visitors/emitter.rb index a0ff9d9..71c33e3 100644 --- a/lib/psych/visitors/emitter.rb +++ b/lib/psych/visitors/emitter.rb @@ -26,6 +26,12 @@ module Psych o.children.each { |c| c.accept self } @handler.end_sequence end + + visitor_for(Nodes::Mapping) do |o| + @handler.start_mapping o.anchor, o.tag, o.implicit, o.style + o.children.each { |c| c.accept self } + @handler.end_mapping + end end end end |