class Net::SSH::Telnet::TinyFactory
Wrapper to emulate the behaviour of Net::Telnet “Proxy” option, where the user passes in an already-open socket
Public Class Methods
new(sock)
click to toggle source
# File lib/net/ssh/telnet.rb, line 23 def initialize(sock) @sock = sock end
Public Instance Methods
open(host, port)
click to toggle source
# File lib/net/ssh/telnet.rb, line 26 def open(host, port) s = @sock @sock = nil s end