diff options
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 |