mirror of
https://github.com/ruby/ruby.git
synced 2025-09-17 17:43:59 +02:00
* 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:
parent
dbe6250af2
commit
f8d34b2a75
3 changed files with 15 additions and 0 deletions
|
@ -47,6 +47,7 @@ module Psych
|
|||
|
||||
def tree
|
||||
finish unless finished?
|
||||
@emitter.root
|
||||
end
|
||||
|
||||
def push object
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue