Sha256: dae833dc8015feee80d7fb364d1fe5fd04367e44c3a52e146208788ff7ffb88d

Contents?: true

Size: 389 Bytes

Versions: 1

Compression:

Stored size: 389 Bytes

Contents

$LOAD_PATH.unshift(File.dirname(__FILE__)) unless $LOAD_PATH.include?(File.dirname(__FILE__))

require 'addressable/uri'
require 'domainatrix/domain_parser.rb'
require 'domainatrix/url.rb'

module Domainatrix
  VERSION = "0.0.11"
  DOMAIN_PARSER = DomainParser.new("#{File.dirname(__FILE__)}/effective_tld_names.dat")

  def self.parse(url)
    Url.new(DOMAIN_PARSER.parse(url))
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
f1sherman-domainatrix-0.0.11 lib/domainatrix.rb