class IO::Endpoint::Generic
def self.parse(string, **options)
- See: Endpoint.unix - unix - invoked when parsing a URL with the unix scheme: "unix://127.0.0.1"
See: Endpoint.udp - udp - invoked when parsing a URL with the udp scheme: "udp://127.0.0.1"
See: Endpoint.tcp - tcp - invoked when parsing a URL with the tcp scheme: "tcp://127.0.0.1"
See: Endpoint.ssl - ssl - invoked when parsing a URL with the ssl scheme "ssl://127.0.0.1"
Parameters:
-
options() -- keyword arguments passed through to {#initialize} -
string(String) -- URI as string. Scheme will decide implementation used.
def self.parse(string, **options) uri = URI.parse(string) IO::Endpoint.public_send(uri.scheme, uri.host, uri.port, **options) end