Module: Weso::Base

Defined in:
lib/weso.rb,
lib/weso/base.rb,
lib/weso/client.rb,
lib/weso/socket_creator.rb

Overview

::nodoc

Defined Under Namespace

Classes: Client, SocketCreator

Class Method Summary collapse

Class Method Details

.connect(url, options = {}) {|client| ... } ⇒ Object

Yields:

  • (client)


8
9
10
11
12
# File 'lib/weso/base.rb', line 8

def self.connect(url, options = {})
  client = Weso::Base::Client.new
  yield client if block_given?
  client.connect(url, options)
end