class URI::Generic

Public Instance Methods

absolutize!(base_uri) click to toggle source

Compares parsed URI with a base URI and adds the host section, if needed

@param base_uri [URI]

# File lib/mako/core_ext/uri.rb, line 8
def absolutize!(base_uri)
  base_uri.host == host ? to_s : base_uri.merge(self).to_s
end