diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2009-09-29 17:16:29 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2009-09-29 17:16:29 -0700 |
commit | f9764c806980a663dbc75a8ec1764d02a225595d (patch) | |
tree | 6f08b36991fb1befeb1b0c950d13998b8661a677 /lib | |
parent | 26eee0cd258ef47d595e9ae44e06ccf4d71ced56 (diff) | |
download | psych-f9764c806980a663dbc75a8ec1764d02a225595d.zip |
aliases can be emitted
Diffstat (limited to 'lib')
-rw-r--r-- | lib/psych/visitors/emitter.rb | 4 |
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 |