use -alloc and not -new to recreate Ruby objects from YAML (since -new calls -initialize which may take arguments)
--- MacRuby/trunk/lib/yaml/rubytypes.rb 2009-11-03 02:07:11 UTC (rev 2942)
+++ MacRuby/trunk/lib/yaml/rubytypes.rb 2009-11-03 02:36:34 UTC (rev 2943)
@@ -42,7 +42,7 @@
end
def self.yaml_new(val)
- obj = self.new
+ obj = self.alloc
if obj.respond_to?(:yaml_initialize)
obj.yaml_initialize(taguri, val)
else