Object
Socket address builder.
Given a socket type, a host and a port,
provides a method to build sockaddr string
# File bundler/mirror.rb, line 213 def initialize(type, host, port) @type = type @host = host @port = port end
# File bundler/mirror.rb, line 219 def to_socket_address Socket.pack_sockaddr_in(@port, @host) end
This page was generated for Ruby 2.7.4
Ruby-doc.org is a service of James Britt and Neurogami, an erratic source of art, music, and technology.
Generated with Ruby-doc Rdoc Generator 0.42.0.