mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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@20855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6764400540
commit
46fd22f561
2 changed files with 13 additions and 1 deletions
10
ChangeLog
10
ChangeLog
|
|
@ -1,3 +1,13 @@
|
|||
Thu Dec 18 08:20:51 2008 James Edward Gray II <jeg2@ruby-lang.org>
|
||||
|
||||
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]
|
||||
|
||||
Wed Dec 17 21:02:55 2008 Akinori MUSHA <knu@iDaemons.org>
|
||||
|
||||
* enumerator.c (inspect_enumerator): Implement #inspect.
|
||||
|
|
|
|||
|
|
@ -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