Sha256: 14b25c679db8b04d52a5937be36ebaa8b1ebd9677b438889d9e1b0b5dd3be0fb

Contents?: true

Size: 282 Bytes

Versions: 3

Compression:

Stored size: 282 Bytes

Contents

# frozen_string_literal: true

module URI
  class Generic
    # Compares parsed URI with a base URI and adds the host section, if needed
    #
    # @param base_uri [URI]
    def absolutize!(base_uri)
      base_uri.host == host ? to_s : base_uri.merge(self).to_s
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mako_rss-0.2.5 lib/mako/core_ext/uri.rb
mako_rss-0.2.3 lib/mako/core_ext/uri.rb
mako_rss-0.2.2 lib/mako/core_ext/uri.rb