diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/drb/drb.rb | 12 |
2 files changed, 16 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Tue Feb 1 21:49:24 2005 Masatoshi SEKI <[email protected]> + + * lib/drb/drb.rb (DRb::DRbObject#respond_to?): check marshal_dump and + _dump. + Tue Feb 1 00:20:23 2005 Nobuyoshi Nakada <[email protected]> * Makefile.in, configure.in: made EXTOUT configurable. 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) |