summaryrefslogtreecommitdiffstats
path: root/lib/soap
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-07-20 17:36:36 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-07-20 17:36:36 +0000
commitd596fadb735af6d4956d003a87be46d5c934d1c9 (patch)
treef23af24cc3d193da3cc59197e065e2b986e8bb5d /lib/soap
parent517fc96672a0c8c582219184d7157afbf543ffef (diff)
downloadruby-d596fadb735af6d4956d003a87be46d5c934d1c9.tar.gz
ruby-d596fadb735af6d4956d003a87be46d5c934d1c9.tar.xz
ruby-d596fadb735af6d4956d003a87be46d5c934d1c9.zip
* object.c (rb_mod_attr): make Module#attr to be an alias to
attr_reader. [RCR#331] * ruby.h: export classes/modules to implement sandbox. [ruby-core:08283] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/soap')
-rw-r--r--lib/soap/mapping/registry.rb2
-rw-r--r--lib/soap/mapping/rubytypeFactory.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/soap/mapping/registry.rb b/lib/soap/mapping/registry.rb
index 823e80666..a4183fea5 100644
--- a/lib/soap/mapping/registry.rb
+++ b/lib/soap/mapping/registry.rb
@@ -522,7 +522,7 @@ private
list = (class << obj; self; end).ancestors - obj.class.ancestors
unless list.empty?
node.extraattr[RubyExtendName] = list.collect { |c|
- if c.name.empty?
+ unless c.name
raise TypeError.new("singleton can't be dumped #{ obj }")
end
c.name
diff --git a/lib/soap/mapping/rubytypeFactory.rb b/lib/soap/mapping/rubytypeFactory.rb
index 61c21d8b2..6c30f23a7 100644
--- a/lib/soap/mapping/rubytypeFactory.rb
+++ b/lib/soap/mapping/rubytypeFactory.rb
@@ -262,7 +262,7 @@ private
end
def unknownobj2soap(soap_class, obj, info, map)
- if obj.class.name.empty?
+ unless obj.class.name
raise TypeError.new("can't dump anonymous class #{obj}")
end
singleton_class = class << obj; self; end