From 35ca1ca580905574a075ccb4ec032744954e6f0b Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Wed, 27 Jan 2010 09:07:54 -0800 Subject: breaking out coder --- lib/psych/visitors/yaml_tree.rb | 4 ++++ 1 file changed, 4 insertions(+) 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) -- cgit v1.2.3