class Build::URI::Triplet

Constants

PARSER

Public Class Methods

parse(string) click to toggle source
# File lib/build/uri/triplet.rb, line 48
def self.parse(string)
        if match = PARSER.match(string)
                self.new(
                        match[:userinfo],
                        match[:host],
                        match[:path],
                ).freeze
        end
end

Public Instance Methods

local?() click to toggle source
# File lib/build/uri/triplet.rb, line 32
def local?
        false
end
to_s() click to toggle source
# File lib/build/uri/triplet.rb, line 36
def to_s
        buffer = String.new
        
        if userinfo
                buffer << userinfo << '@'
        end
        
        buffer << host << ':' << path
        
        return buffer
end