mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
a077e7cec4
commit
b61d1549d4
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
Thu Feb 19 22:24:04 2004 NAKAMURA, Hiroshi <nakahiro@sarion.co.jp>
|
||||
|
||||
* 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)
|
||||
|
||||
Thu Feb 19 18:08:18 2004 Gavin Sinclair <gsinclair@soyabean.com.au>
|
||||
|
||||
* ext/strscan/strscan.c: improved documentation
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue