diff options
| author | seki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-30 14:43:03 +0000 |
|---|---|---|
| committer | seki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-30 14:43:03 +0000 |
| commit | 43d56fe9ce51096a2c40b826f6473a8f5fd9e953 (patch) | |
| tree | 9424132087222ce524fc479d1bb6d60067e6bc5f /lib/drb/invokemethod.rb | |
| parent | d62f675f4991e49c386b6694615512541b312371 (diff) | |
| download | ruby-43d56fe9ce51096a2c40b826f6473a8f5fd9e953.tar.gz ruby-43d56fe9ce51096a2c40b826f6473a8f5fd9e953.tar.xz ruby-43d56fe9ce51096a2c40b826f6473a8f5fd9e953.zip | |
add DRbArray, and change yield. [ruby-dev:21773]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/drb/invokemethod.rb')
| -rw-r--r-- | lib/drb/invokemethod.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/drb/invokemethod.rb b/lib/drb/invokemethod.rb index 6d6c9562c..412b2ab9b 100644 --- a/lib/drb/invokemethod.rb +++ b/lib/drb/invokemethod.rb @@ -4,6 +4,9 @@ module DRb class DRbServer module InvokeMethod18Mixin def block_yield(x) + if x.size == 1 && x[0].class == Array + x[0] = DRbArray.new(x[0]) + end block_value = @block.call(*x) end |
