summaryrefslogtreecommitdiff
path: root/lib/xmlrpc/utils.rb
diff options
context:
space:
mode:
authormneumann <mneumann@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-24 20:27:43 +0000
committermneumann <mneumann@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-24 20:27:43 +0000
commit686c038347b41761032c728ca5babc18a35ad142 (patch)
tree3b53de37a575c315b6daebd746ee91461dbc0833 /lib/xmlrpc/utils.rb
parent1ee06ebecf3b3b96de788c8dedd3b0de3cb0be18 (diff)
* lib/xmlrpc/*, test/xmlrpc/*: backported changes from HEAD into 1.8
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/xmlrpc/utils.rb')
-rw-r--r--lib/xmlrpc/utils.rb9
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/xmlrpc/utils.rb b/lib/xmlrpc/utils.rb
index 14dd08b21d..85c6bba372 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