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/branches/ruby_1_8@7860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
544a9b3e4a
commit
296f79bef5
2 changed files with 16 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue