method
with_friend
with_friend(uri)
public
Hide source
# File lib/drb/drb.rb, line 1103 def self.with_friend(uri) friend = DRb.fetch_server(uri) return yield() unless friend save = Thread.current['DRb'] Thread.current['DRb'] = { 'server' => friend } return yield ensure Thread.current['DRb'] = save if friend end