Class: Xssh::Connection::TinyFactory
- Inherits:
-
Object
- Object
- Xssh::Connection::TinyFactory
- Defined in:
- lib/xssh/connection.rb
Instance Method Summary collapse
-
#initialize(sock) ⇒ TinyFactory
constructor
A new instance of TinyFactory.
- #open(host, port) ⇒ Object
Constructor Details
#initialize(sock) ⇒ TinyFactory
Returns a new instance of TinyFactory.
13 14 15 |
# File 'lib/xssh/connection.rb', line 13 def initialize(sock) @sock = sock end |
Instance Method Details
#open(host, port) ⇒ Object
16 17 18 19 20 |
# File 'lib/xssh/connection.rb', line 16 def open(host, port) s = @sock @sock = nil s end |