Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../opt/alt/ruby27/share/ruby/drb
File: invokemethod.rb
# frozen_string_literal: false
[0] Fix | Delete
# for ruby-1.8.0
[1] Fix | Delete
[2] Fix | Delete
module DRb # :nodoc: all
[3] Fix | Delete
class DRbServer
[4] Fix | Delete
module InvokeMethod18Mixin
[5] Fix | Delete
def block_yield(x)
[6] Fix | Delete
if x.size == 1 && x[0].class == Array
[7] Fix | Delete
x[0] = DRbArray.new(x[0])
[8] Fix | Delete
end
[9] Fix | Delete
@block.call(*x)
[10] Fix | Delete
end
[11] Fix | Delete
[12] Fix | Delete
def perform_with_block
[13] Fix | Delete
@obj.__send__(@msg_id, *@argv) do |*x|
[14] Fix | Delete
jump_error = nil
[15] Fix | Delete
begin
[16] Fix | Delete
block_value = block_yield(x)
[17] Fix | Delete
rescue LocalJumpError
[18] Fix | Delete
jump_error = $!
[19] Fix | Delete
end
[20] Fix | Delete
if jump_error
[21] Fix | Delete
case jump_error.reason
[22] Fix | Delete
when :break
[23] Fix | Delete
break(jump_error.exit_value)
[24] Fix | Delete
else
[25] Fix | Delete
raise jump_error
[26] Fix | Delete
end
[27] Fix | Delete
end
[28] Fix | Delete
block_value
[29] Fix | Delete
end
[30] Fix | Delete
end
[31] Fix | Delete
end
[32] Fix | Delete
end
[33] Fix | Delete
end
[34] Fix | Delete
[35] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function