Method: Alf::Adapter#connect

Defined in:
lib/alf/adapter.rb

#connectObject

Yields the block with a connection and closes it afterwards



86
87
88
89
90
91
# File 'lib/alf/adapter.rb', line 86

def connect
  c = connection
  yield(c)
ensure
  c.close if c
end