From b61d1549d43e4c0afa2367a22c979d215976bd3e Mon Sep 17 00:00:00 2001 From: nahi Date: Thu, 19 Feb 2004 13:26:56 +0000 Subject: * lib/soap/mapping/rubytypeFactory.rb: should not dump singleton class. [ruby-dev:22588] c = class << Object.new; class C; self; end; end; SOAPMarshal.dump(c) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/soap/mapping/rubytypeFactory.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/soap') diff --git a/lib/soap/mapping/rubytypeFactory.rb b/lib/soap/mapping/rubytypeFactory.rb index a447715add..f79bc78cc7 100644 --- a/lib/soap/mapping/rubytypeFactory.rb +++ b/lib/soap/mapping/rubytypeFactory.rb @@ -167,7 +167,7 @@ class RubytypeFactory < Factory unless @allow_original_mapping return nil end - if obj.name.empty? + if obj.to_s[0] == ?# raise TypeError.new("Can't dump anonymous class #{ obj }.") end param = SOAPStruct.new(TYPE_CLASS) @@ -178,7 +178,7 @@ class RubytypeFactory < Factory unless @allow_original_mapping return nil end - if obj.name.empty? + if obj.to_s[0] == ?# raise TypeError.new("Can't dump anonymous module #{ obj }.") end param = SOAPStruct.new(TYPE_MODULE) -- cgit v1.2.3