Top Level Namespace
Defined Under Namespace
Modules: Motel Classes: CountingSemaphore, Float
Constant Summary collapse
- Semaphore =
CountingSemaphore
Instance Method Summary collapse
-
#connect(args = {}, &block) ⇒ Object
establish client connection w/ specified args and invoke block w/ newly created client, returning it after block terminates.
Instance Method Details
#connect(args = {}, &block) ⇒ Object
establish client connection w/ specified args and invoke block w/ newly created client, returning it after block terminates
8 9 10 11 12 |
# File 'lib/motel/dsl.rb', line 8 def connect(args = {}, &block) client = Motel::Client.new(args) block.call client unless block.nil? return client end |