Class: Xssh::Connection::TinyFactory

Inherits:
Object
  • Object
show all
Defined in:
lib/xssh/connection.rb

Instance Method Summary collapse

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