--- lib/xmlrpc/utils.rb.org 2003-08-14 10:20:14.000000000 -0700 +++ lib/xmlrpc/utils.rb.org 2005-06-19 08:47:31.000000000 -0700 @@ -6,7 +6,7 @@ # # Copyright (C) 2001, 2002, 2003 by Michael Neumann (mneumann@ntecs.de) # -# $Id: utils.rb,v 1.2 2003/08/14 17:20:14 matz Exp $ +# $Id: utils.rb,v 1.4 2005/06/19 15:47:31 mneumann Exp $ # module XMLRPC @@ -17,13 +17,6 @@ # 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 @@ 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