summaryrefslogtreecommitdiffstats
path: root/lib/soap/wsdlDriver.rb
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
commitda0d6e4facdb5f2b3ea2a04ef00de18764158927 (patch)
tree7194c55210572d21506dce99d32577db423d8f61 /lib/soap/wsdlDriver.rb
parentfcbc33981b5ffb37693e30f0e385f84e83bce0dc (diff)
downloadruby-da0d6e4facdb5f2b3ea2a04ef00de18764158927.tar.gz
ruby-da0d6e4facdb5f2b3ea2a04ef00de18764158927.tar.xz
ruby-da0d6e4facdb5f2b3ea2a04ef00de18764158927.zip
* lib: do not use __send__ to access private methods. [ruby-dev:26935]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/soap/wsdlDriver.rb')
-rw-r--r--lib/soap/wsdlDriver.rb11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/soap/wsdlDriver.rb b/lib/soap/wsdlDriver.rb
index 3431d5d67..edd069e4f 100644
--- a/lib/soap/wsdlDriver.rb
+++ b/lib/soap/wsdlDriver.rb
@@ -159,13 +159,14 @@ class WSDLDriver
if RUBY_VERSION >= "1.7.0"
def __attr_proxy(symbol, assignable = false)
name = symbol.to_s
- self.__send__(:define_method, name, proc {
+ define_method(name) {
@servant.__send__(name)
- })
+ }
if assignable
- self.__send__(:define_method, name + '=', proc { |rhs|
- @servant.__send__(name + '=', rhs)
- })
+ aname = name + '='
+ define_method(aname) { |rhs|
+ @servant.__send__(aname, rhs)
+ }
end
end
else