diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/psych/visitors/yaml_tree.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/psych/visitors/yaml_tree.rb b/lib/psych/visitors/yaml_tree.rb index 120a78d..9b7a560 100644 --- a/lib/psych/visitors/yaml_tree.rb +++ b/lib/psych/visitors/yaml_tree.rb @@ -249,6 +249,10 @@ module Psych c = Psych::Coder.new(tag) o.encode_with(c) + emit_coder c + end + + def emit_coder c case c.type when :scalar append Nodes::Scalar.new(c.scalar, nil, c.tag) |