Sha256: 5daeed38dcf2a340d79a7c367a7aa10630593c41af5967f08d865d69d7279fc4

Contents?: true

Size: 381 Bytes

Versions: 1

Compression:

Stored size: 381 Bytes

Contents

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

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

module Domainatrix
  VERSION = "0.0.4"

  def self.parse(url)
    @domain_parser ||= DomainParser.new("#{File.dirname(__FILE__)}/effective_tld_names.dat")
    Url.new(@domain_parser.parse(url))
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
domainatrix-0.0.4 lib/domainatrix.rb