[macruby-changes] [2245] MacRuby/trunk

source_changes at macosforge.org source_changes at macosforge.org
Thu Aug 6 13:27:47 PDT 2009


Revision: 2245
          http://trac.macosforge.org/projects/ruby/changeset/2245
Author:   pthomson at apple.com
Date:     2009-08-06 13:27:45 -0700 (Thu, 06 Aug 2009)
Log Message:
-----------
Added YAML::tag_class and its spec.

Modified Paths:
--------------
    MacRuby/trunk/lib/yaml.rb
    MacRuby/trunk/spec/macruby.mspec

Modified: MacRuby/trunk/lib/yaml.rb
===================================================================
--- MacRuby/trunk/lib/yaml.rb	2009-08-06 19:28:53 UTC (rev 2244)
+++ MacRuby/trunk/lib/yaml.rb	2009-08-06 20:27:45 UTC (rev 2245)
@@ -71,6 +71,11 @@
     end
   end
   
+  def YAML.tag_class(tag, klass)
+    LibYAML::DEFAULT_RESOLVER.add_type(tag, klass)
+    klass
+  end
+  
 end
 
 module Kernel

Modified: MacRuby/trunk/spec/macruby.mspec
===================================================================
--- MacRuby/trunk/spec/macruby.mspec	2009-08-06 19:28:53 UTC (rev 2244)
+++ MacRuby/trunk/spec/macruby.mspec	2009-08-06 20:27:45 UTC (rev 2245)
@@ -37,7 +37,8 @@
     'library/yaml/dump_spec.rb',
     'library/yaml/load_documents_spec.rb',
     'library/yaml/load_file.spec',
-    'library/yaml/load_spec.rb'
+    'library/yaml/load_spec.rb',
+    'library/yaml/tag_class_spec.rb'
   ]
   
   # Prepend the paths with the proper prefix
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090806/6f1ca12a/attachment.html>


More information about the macruby-changes mailing list