зеркало из https://github.com/github/ruby.git
(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:
Родитель
81c44c9d3c
Коммит
2388b9c79b
|
@ -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.
|
||||
|
|
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче