summaryrefslogtreecommitdiff
path: root/ext/psych/lib/psych/json
diff options
context:
space:
mode:
authortenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-20 04:03:47 +0000
committertenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-20 04:03:47 +0000
commit5256d1026505b01f75669c1087c74c04dacd05ba (patch)
treefef5fef33aed5c2a8398f42f53b32212f3ca3568 /ext/psych/lib/psych/json
parentf0b0dd2912b7223fe8dd62d7b2531e26870a9def (diff)
* ext/psych/lib/psych/stream.rb: adding YAML streaming API for
infinite length streams. * ext/psych/lib/psych.rb: refactoring for streaming API * ext/psych/lib/psych/{handler, stream, tree_builder}.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/psych/lib/psych/json')
-rw-r--r--ext/psych/lib/psych/json/tree_builder.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/psych/lib/psych/json/tree_builder.rb b/ext/psych/lib/psych/json/tree_builder.rb
index 91d7e6cad6..d0a76177bf 100644
--- a/ext/psych/lib/psych/json/tree_builder.rb
+++ b/ext/psych/lib/psych/json/tree_builder.rb
@@ -8,7 +8,7 @@ module Psych
super(version, tag_directives, true)
end
- def end_document implicit_end
+ def end_document implicit_end = !streaming?
super(true)
end