Module: BrB::Tunnel
- Defined in:
- lib/brb/tunnel.rb,
lib/brb/tunnel/shared.rb
Defined Under Namespace
Modules: Shared Classes: Handler
Class Method Summary collapse
-
.create(object, uri = nil, opts = {}, &block) ⇒ Object
Create a BrB Tunnel by connecting to a distant BrB service Pass a block if you want to get register and unregister events The first parameter object is the object you want to expose in the BrB tunnel.
Class Method Details
.create(object, uri = nil, opts = {}, &block) ⇒ Object
Create a BrB Tunnel by connecting to a distant BrB service Pass a block if you want to get register and unregister events The first parameter object is the object you want to expose in the BrB tunnel
12 13 14 |
# File 'lib/brb/tunnel.rb', line 12 def self.create(object, uri = nil, opts = {}, &block) BrB::Protocol.open(uri, BrB::Tunnel::Handler, opts.merge(:object => object, :block => block)) end |