diff options
| author | mneumann <mneumann@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-06-24 20:27:43 +0000 |
|---|---|---|
| committer | mneumann <mneumann@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-06-24 20:27:43 +0000 |
| commit | 3a2bad4a7eee76264dbce9d1f739527be16246ec (patch) | |
| tree | 3b53de37a575c315b6daebd746ee91461dbc0833 /lib/xmlrpc/utils.rb | |
| parent | 20405e8e8b94cc33204219a8ac62a6b3b4447f14 (diff) | |
| download | ruby-3a2bad4a7eee76264dbce9d1f739527be16246ec.tar.gz ruby-3a2bad4a7eee76264dbce9d1f739527be16246ec.tar.xz ruby-3a2bad4a7eee76264dbce9d1f739527be16246ec.zip | |
* lib/xmlrpc/*, test/xmlrpc/*: backported changes from HEAD into 1.8
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/xmlrpc/utils.rb')
| -rw-r--r-- | lib/xmlrpc/utils.rb | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/xmlrpc/utils.rb b/lib/xmlrpc/utils.rb index 14dd08b21..85c6bba37 100644 --- a/lib/xmlrpc/utils.rb +++ b/lib/xmlrpc/utils.rb @@ -17,13 +17,6 @@ module XMLRPC # key/value pair "___class___" => ClassName # module Marshallable - def __get_instance_variables - instance_variables.collect {|var| [var[1..-1], eval(var)] } - end - - def __set_instance_variable(key, value) - eval("@#$1 = value") if key =~ /^([\w_][\w_0-9]*)$/ - end end @@ -138,7 +131,7 @@ module XMLRPC def get_methods(obj, delim=".") prefix = @prefix + delim - obj.class.public_instance_methods.collect { |name| + obj.class.public_instance_methods(false).collect { |name| [prefix + name, obj.method(name).to_proc, nil, nil] } end |
