Class Methods
::
ext/socket/lib/socket.rb
View on GitHub
# File tmp/rubies/ruby-3.4.0-preview1/ext/socket/lib/socket.rb, line 1107
def initialize
@socket_dict = {}
end
No documentation available
Instance Methods
ext/socket/lib/socket.rb
View on GitHub
# File tmp/rubies/ruby-3.4.0-preview1/ext/socket/lib/socket.rb, line 1115
def add(socket, addrinfo)
@socket_dict[socket] = addrinfo
end
No documentation available
#
ext/socket/lib/socket.rb
View on GitHub
# File tmp/rubies/ruby-3.4.0-preview1/ext/socket/lib/socket.rb, line 1111
def all
@socket_dict.keys
end
No documentation available
ext/socket/lib/socket.rb
View on GitHub
# File tmp/rubies/ruby-3.4.0-preview1/ext/socket/lib/socket.rb, line 1119
def delete(socket)
@socket_dict.delete socket
end
No documentation available
ext/socket/lib/socket.rb
View on GitHub
# File tmp/rubies/ruby-3.4.0-preview1/ext/socket/lib/socket.rb, line 1127
def each
@socket_dict.keys.each do |socket|
yield socket
end
end
No documentation available
#
ext/socket/lib/socket.rb
View on GitHub
# File tmp/rubies/ruby-3.4.0-preview1/ext/socket/lib/socket.rb, line 1123
def empty?
@socket_dict.empty?
end
No documentation available