Class: Sanjose::Connection
- Inherits:
-
Object
- Object
- Sanjose::Connection
- Defined in:
- lib/sanjose/connection.rb
Class Method Summary collapse
Class Method Details
.open(uri) {|connection| ... } ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/sanjose/connection.rb', line 6 def open(uri) return if uri == nil connection = connection_for_uri(uri) connection.start yield connection connection.finish end |