Sha256: 3d458f76a72f47f0d44e2b6af880419c95f0cd1d1c136da14f00db63e7f96e12
Contents?: true
Size: 324 Bytes
Versions: 1
Compression:
Stored size: 324 Bytes
Contents
require 'net/http' require 'net/ftp' # Net::HTTP and Net::FTP reference +Socket+, so wind up referencing # +Net::Socket+ normally. # # This defines +Net::HTTP::Socket+ and +Net::FTP::Socket+ as aliases # for +::Socket+, thus avoiding errors. class Net::HTTP Socket = ::Socket end class Net::FTP Socket = ::Socket end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
net-socket-1.0.1 | lib/net/socket/socket-hack.rb |