method

parse_uri

ruby latest stable - Class: DRb::DRbTCPSocket

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_9_3_392) is shown here.

parse_uri(uri)
private

No documentation available.

# File lib/drb/drb.rb, line 807
    def self.parse_uri(uri)
      if uri =~ /^druby:\/\/(.*?):(\d+)(\?(.*))?$/
        host = $1
        port = $2.to_i
        option = $4
        [host, port, option]
      else
        raise(DRbBadScheme, uri) unless uri =~ /^druby:/
        raise(DRbBadURI, 'can\t parse uri:' + uri)
      end
    end