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

(DRb::DRbObject#respond_to?): check marshal_dump and _dump

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
seki 2005-02-01 12:57:03 +00:00
parent 81c44c9d3c
commit 2388b9c79b
2 changed files with 16 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Tue Feb 1 21:49:24 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
* lib/drb/drb.rb (DRb::DRbObject#respond_to?): check marshal_dump and
_dump.
Tue Feb 1 00:20:23 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
* Makefile.in, configure.in: made EXTOUT configurable.

View file

@ -1045,7 +1045,17 @@ module DRb
undef :to_s
undef :to_a if respond_to?(:to_a)
undef :respond_to?
def respond_to?(msg_id)
case msg_id
when :_dump
true
when :marshal_dump
false
else
method_missing(:respond_to?, msg_id)
end
end
# Routes method calls to the referenced object.
def method_missing(msg_id, *a, &b)