Method: Blur.connect
- Defined in:
- library/blur.rb
.connect(options = {}, &block) ⇒ Object
Note:
The idea is that this should never stop or return anything.
Instantiates a client with given options and then makes the client instance evaluate the given block to form a DSL.
66 67 68 69 70 |
# File 'library/blur.rb', line 66 def self.connect = {}, &block Client.new().tap do |client| client.instance_eval &block end.connect end |