Revision
2829
Author
neeracher@apple.com
Date
2009-10-15 23:09:18 -0700 (Thu, 15 Oct 2009)

Log Message

Implement YAML.each_document

Modified Paths

Removed Paths

Diff

Modified: MacRuby/trunk/lib/yaml.rb (2828 => 2829)


--- 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 (2828 => 2829)


--- 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