mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
118eecc361
commit
cd5c309542
2 changed files with 11 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue