merge revision(s) 20855:

Merged 20854 from trunk.
	* 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/branches/ruby_1_8_7@22461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
shyouhei 2009-02-20 09:06:53 +00:00
parent e2608406a5
commit 4d17c7336b
3 changed files with 14 additions and 2 deletions

View file

@ -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