require 'treetop' require 'earl/version' require 'earl/url_parser' module Earl autoload :URL, 'earl/url' autoload :UrlAssembler, 'earl/url_assembler' autoload :HashInquirer, 'earl/hash_inquirer' autoload :StringInquirer, 'earl/string_inquirer' class << self def parse( string ) Earl::URL.new string end end class EarlError < StandardError; end class InvalidURLError < EarlError; end end