summaryrefslogtreecommitdiff
path: root/ext/psych/lib/psych/tree_builder.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/psych/lib/psych/tree_builder.rb')
-rw-r--r--ext/psych/lib/psych/tree_builder.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/psych/lib/psych/tree_builder.rb b/ext/psych/lib/psych/tree_builder.rb
index 8b4e972314..c8f344787c 100644
--- a/ext/psych/lib/psych/tree_builder.rb
+++ b/ext/psych/lib/psych/tree_builder.rb
@@ -72,7 +72,9 @@ module Psych
end
def scalar value, anchor, tag, plain, quoted, style
- @last.children << Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
+ s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
+ @last.children << s
+ s
end
def alias anchor