class DRb::DRbSSLSocket
def self.parse_uri(uri) # :nodoc:
Raises DRbBadScheme or DRbBadURI if +uri+ is not matching or malformed
Expects drbssl://...
Parse the dRuby +uri+ for an SSL connection.
def self.parse_uri(uri) # :nodoc: if /\Adrbssl:\/\/(.*?):(\d+)(\?(.*))?\z/ =~ uri host = $1 port = $2.to_i option = $4 [host, port, option] else raise(DRbBadScheme, uri) unless uri.start_with?('drbssl:') raise(DRbBadURI, 'can\'t parse uri:' + uri) end end