* 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
This commit is contained in:
tenderlove 2012-10-28 01:13:09 +00:00
parent dbe6250af2
commit f8d34b2a75
3 changed files with 15 additions and 0 deletions

View file

@ -47,6 +47,7 @@ module Psych
def tree
finish unless finished?
@emitter.root
end
def push object