module URLCanonicalize

Core methods

Core methods

Constants

VERSION

Public Class Methods

canonicalize(url) click to toggle source
# File lib/url_canonicalize.rb, line 20
def canonicalize(url)
  fetch(url).url
end
fetch(url) click to toggle source
# File lib/url_canonicalize.rb, line 24
def fetch(url)
  URLCanonicalize::HTTP.new(url).fetch
end