summaryrefslogtreecommitdiff
path: root/lib/drb/drb.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/drb/drb.rb')
-rw-r--r--lib/drb/drb.rb12
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/drb/drb.rb b/lib/drb/drb.rb
index 78cf482c86..472f5c8db0 100644
--- a/lib/drb/drb.rb
+++ b/lib/drb/drb.rb
@@ -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)