Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 96784 | Differences between
and this patch

Collapse All | Expand All

(-)lib/xmlrpc/utils.rb.org (-9 / +2 lines)
Lines 6-12 Link Here
6
# 
6
# 
7
# Copyright (C) 2001, 2002, 2003 by Michael Neumann (mneumann@ntecs.de)
7
# Copyright (C) 2001, 2002, 2003 by Michael Neumann (mneumann@ntecs.de)
8
#
8
#
9
# $Id: utils.rb,v 1.2 2003/08/14 17:20:14 matz Exp $ 
9
# $Id: utils.rb,v 1.4 2005/06/19 15:47:31 mneumann Exp $ 
10
#
10
#
11
11
12
module XMLRPC
12
module XMLRPC
Lines 17-29 Link Here
17
  # key/value pair "___class___" => ClassName
17
  # key/value pair "___class___" => ClassName
18
  # 
18
  # 
19
  module Marshallable
19
  module Marshallable
20
    def __get_instance_variables
21
      instance_variables.collect {|var| [var[1..-1], eval(var)] }
22
    end
23
24
    def __set_instance_variable(key, value)
25
      eval("@#$1 = value") if key =~ /^([\w_][\w_0-9]*)$/
26
    end
27
  end
20
  end
28
21
29
22
Lines 138-144 Link Here
138
131
139
    def get_methods(obj, delim=".")
132
    def get_methods(obj, delim=".")
140
      prefix = @prefix + delim
133
      prefix = @prefix + delim
141
      obj.class.public_instance_methods.collect { |name|
134
      obj.class.public_instance_methods(false).collect { |name|
142
        [prefix + name, obj.method(name).to_proc, nil, nil] 
135
        [prefix + name, obj.method(name).to_proc, nil, nil] 
143
      }
136
      }
144
    end
137
    end

Return to bug 96784