diff options
author | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-10-28 01:13:09 +0000 |
---|---|---|
committer | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-10-28 01:13:09 +0000 |
commit | f8d34b2a751207fa9d31482e7f587f8bf59b892c (patch) | |
tree | 7729a89ecb8609b8a38eebd87b143f59f34491bd /ext/psych/lib | |
parent | dbe6250af2a873f7a79980a98f4fe2b4e89ef8c4 (diff) | |
download | ruby-f8d34b2a751207fa9d31482e7f587f8bf59b892c.tar.gz |
* 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/psych/lib')
-rw-r--r-- | ext/psych/lib/psych/visitors/yaml_tree.rb | 1 |
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 |