[macruby-changes] [2829] MacRuby/trunk
source_changes at macosforge.org
source_changes at macosforge.org
Thu Oct 15 23:09:20 PDT 2009
Revision: 2829
http://trac.macosforge.org/projects/ruby/changeset/2829
Author: neeracher at apple.com
Date: 2009-10-15 23:09:18 -0700 (Thu, 15 Oct 2009)
Log Message:
-----------
Implement YAML.each_document
Modified Paths:
--------------
MacRuby/trunk/lib/yaml.rb
Removed Paths:
-------------
MacRuby/trunk/spec/frozen/tags/macruby/library/yaml/each_document_tags.txt
Modified: MacRuby/trunk/lib/yaml.rb
===================================================================
--- MacRuby/trunk/lib/yaml.rb 2009-10-16 04:54:06 UTC (rev 2828)
+++ MacRuby/trunk/lib/yaml.rb 2009-10-16 06:09:18 UTC (rev 2829)
@@ -47,6 +47,10 @@
end
end
+ def YAML.each_document(io, &block)
+ YAML.load_documents(io, &block)
+ end
+
def YAML.load_all(io)
elements = []
YAML.load_documents(io) { |e| elements << e}
Deleted: MacRuby/trunk/spec/frozen/tags/macruby/library/yaml/each_document_tags.txt
===================================================================
--- MacRuby/trunk/spec/frozen/tags/macruby/library/yaml/each_document_tags.txt 2009-10-16 04:54:06 UTC (rev 2828)
+++ MacRuby/trunk/spec/frozen/tags/macruby/library/yaml/each_document_tags.txt 2009-10-16 06:09:18 UTC (rev 2829)
@@ -1,2 +0,0 @@
-fails:YAML#each_document calls the block on each succesive document
-fails:YAML#each_document works on files
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20091015/e5c4a1dc/attachment.html>
More information about the macruby-changes
mailing list