summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authortenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-10-28 01:13:09 +0000
committertenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-10-28 01:13:09 +0000
commitf8d34b2a751207fa9d31482e7f587f8bf59b892c (patch)
tree7729a89ecb8609b8a38eebd87b143f59f34491bd /ext
parentdbe6250af2a873f7a79980a98f4fe2b4e89ef8c4 (diff)
* ext/psych/lib/psych/visitors/yaml_tree.rb: `tree` should return the
same thing on every call. * test/psych/visitors/test_yaml_tree.rb: related test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37350 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/psych/lib/psych/visitors/yaml_tree.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/psych/lib/psych/visitors/yaml_tree.rb b/ext/psych/lib/psych/visitors/yaml_tree.rb
index a9b2ebff37..9cbc05df4a 100644
--- a/ext/psych/lib/psych/visitors/yaml_tree.rb
+++ b/ext/psych/lib/psych/visitors/yaml_tree.rb
@@ -47,6 +47,7 @@ module Psych
def tree
finish unless finished?
+ @emitter.root
end
def push object