1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

(DRbObject#respond_to?) take two arguments. [ruby-dev:25722]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
seki 2005-02-19 10:00:33 +00:00
parent 614b7a2d32
commit 5c293c10e1
3 changed files with 14 additions and 2 deletions

View file

@ -1,3 +1,10 @@
Sat Feb 19 18:46:56 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
* lib/drb/drb.rb (DRbObject#respond_to?): take two arguments.
[ruby-dev:25722]
* test/drb/drbtest.rb: ditto.
Sat Feb 19 13:52:02 2005 Tanaka Akira <akr@m17n.org>
* lib/open-uri.rb: call OpenSSL::SSL::SSLSocket#post_connection_check

View file

@ -1046,14 +1046,14 @@ module DRb
undef :to_s
undef :to_a if respond_to?(:to_a)
def respond_to?(msg_id)
def respond_to?(msg_id, priv=false)
case msg_id
when :_dump
true
when :marshal_dump
false
else
method_missing(:respond_to?, msg_id)
method_missing(:respond_to?, msg_id, priv)
end
end

View file

@ -98,6 +98,11 @@ module DRbCore
assert_equal(6, @there.sample(onecky, 1, 2))
ary = @there.to_a
assert_kind_of(DRb::DRbObject, ary)
assert(@there.respond_to?(:to_a, true))
assert(@there.respond_to?(:eval, true))
assert(! @there.respond_to?(:eval, false))
assert(! @there.respond_to?(:eval))
end
def test_01_02_loop