summaryrefslogtreecommitdiff
path: root/lib/soap/mapping
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-02 14:53:02 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-02 14:53:02 +0000
commitcd5c822ac8adaa4af4daf9166c1e5714662c9c9a (patch)
tree7194c55210572d21506dce99d32577db423d8f61 /lib/soap/mapping
parentc6cdbda54f2ebb50d8e2040392f62f7485112600 (diff)
* lib: do not use __send__ to access private methods. [ruby-dev:26935]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/soap/mapping')
-rw-r--r--lib/soap/mapping/mapping.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/soap/mapping/mapping.rb b/lib/soap/mapping/mapping.rb
index 626df8c82f..cc0e6ff9da 100644
--- a/lib/soap/mapping/mapping.rb
+++ b/lib/soap/mapping/mapping.rb
@@ -254,7 +254,7 @@ module Mapping
def self.define_singleton_method(obj, name, &block)
sclass = (class << obj; self; end)
- sclass.__send__(:define_method, name, &block)
+ sclass.class_eval {define_method(name, &block)}
end
def self.get_attribute(obj, attr_name)