[macruby-changes] [2943] MacRuby/trunk/lib/yaml/rubytypes.rb
source_changes at macosforge.org
source_changes at macosforge.org
Mon Nov 2 18:36:34 PST 2009
Revision: 2943
http://trac.macosforge.org/projects/ruby/changeset/2943
Author: lsansonetti at apple.com
Date: 2009-11-02 18:36:34 -0800 (Mon, 02 Nov 2009)
Log Message:
-----------
use -alloc and not -new to recreate Ruby objects from YAML (since -new calls -initialize which may take arguments)
Modified Paths:
--------------
MacRuby/trunk/lib/yaml/rubytypes.rb
Modified: MacRuby/trunk/lib/yaml/rubytypes.rb
===================================================================
--- 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20091102/513a958b/attachment.html>
More information about the macruby-changes
mailing list