summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2009-09-29 17:16:29 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2009-09-29 17:16:29 -0700
commitf9764c806980a663dbc75a8ec1764d02a225595d (patch)
tree6f08b36991fb1befeb1b0c950d13998b8661a677 /lib
parent26eee0cd258ef47d595e9ae44e06ccf4d71ced56 (diff)
downloadpsych-f9764c806980a663dbc75a8ec1764d02a225595d.zip
aliases can be emitted
Diffstat (limited to 'lib')
-rw-r--r--lib/psych/visitors/emitter.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/psych/visitors/emitter.rb b/lib/psych/visitors/emitter.rb
index 966a09e..3e33095 100644
--- a/lib/psych/visitors/emitter.rb
+++ b/lib/psych/visitors/emitter.rb
@@ -32,6 +32,10 @@ module Psych
o.children.each { |c| c.accept self }
@handler.end_mapping
end
+
+ visitor_for(Nodes::Alias) do |o|
+ @handler.alias o.anchor
+ end
end
end
end