diff options
author | jeg2 <jeg2@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-17 23:15:56 +0000 |
---|---|---|
committer | jeg2 <jeg2@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-17 23:15:56 +0000 |
commit | cd5c309542ad7c352fcbcc0abb5a0bdf3f077a4c (patch) | |
tree | a04888efc4d34f3d549f7d9af507b74ec0d207ac /lib | |
parent | 118eecc3611b4c15155cee23bd838c636df8f189 (diff) | |
download | ruby-cd5c309542ad7c352fcbcc0abb5a0bdf3f077a4c.tar.gz |
* lib/xmlrpc/server.rb: Restricting method inspection to show only
non-inherited public methods. [ruby-core:20603]
* lib/xmlrpc/server.rb: Fixing method inspection so it doesn't
trigger XMLRPC::FaultException when used. [ruby-core:20604]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/xmlrpc/server.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/xmlrpc/server.rb b/lib/xmlrpc/server.rb index ca8d3b0a5b..0ee88c8c8f 100644 --- a/lib/xmlrpc/server.rb +++ b/lib/xmlrpc/server.rb @@ -267,7 +267,9 @@ class BasicServer if obj.kind_of? Proc methods << name else - obj.methods.each {|meth| methods << name + meth} + obj.class.public_instance_methods(false).each do |meth| + methods << "#{name}#{meth}" + end end end methods |