summaryrefslogtreecommitdiffstats
path: root/lib/soap
diff options
context:
space:
mode:
authornahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-02-19 13:26:56 +0000
committernahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-02-19 13:26:56 +0000
commit1cb495279161dc4b066ecbb759fe196a78a24fdb (patch)
treec12c5fec5f2f5021b8c16037ff4f6dbfe552e69c /lib/soap
parent296e8cb814b5b1ee0bcfe03e84ef26c1b19997b0 (diff)
downloadruby-1cb495279161dc4b066ecbb759fe196a78a24fdb.tar.gz
ruby-1cb495279161dc4b066ecbb759fe196a78a24fdb.tar.xz
ruby-1cb495279161dc4b066ecbb759fe196a78a24fdb.zip
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@5783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/soap')
-rw-r--r--lib/soap/mapping/rubytypeFactory.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/soap/mapping/rubytypeFactory.rb b/lib/soap/mapping/rubytypeFactory.rb
index a447715ad..f79bc78cc 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)