Class: Socket::ConnectingSockets
Relationships & Source Files | |
Inherits: | Object |
Defined in: | ext/socket/lib/socket.rb |
Class Method Summary
- .new ⇒ ConnectingSockets constructor
Instance Attribute Summary
- #empty? ⇒ Boolean readonly
Instance Method Summary
Constructor Details
.new ⇒ ConnectingSockets
# File 'ext/socket/lib/socket.rb', line 1107
def initialize @socket_dict = {} end
Instance Attribute Details
#empty? ⇒ Boolean
(readonly)
[ GitHub ]
# File 'ext/socket/lib/socket.rb', line 1123
def empty? @socket_dict.empty? end
Instance Method Details
#add(socket, addrinfo)
[ GitHub ]# File 'ext/socket/lib/socket.rb', line 1115
def add(socket, addrinfo) @socket_dict[socket] = addrinfo end
#all
[ GitHub ]# File 'ext/socket/lib/socket.rb', line 1111
def all @socket_dict.keys end
#delete(socket)
[ GitHub ]# File 'ext/socket/lib/socket.rb', line 1119
def delete(socket) @socket_dict.delete socket end
#each
[ GitHub ]# File 'ext/socket/lib/socket.rb', line 1127
def each @socket_dict.keys.each do |socket| yield socket end end