require 'earl/version' module Earl autoload :EntityBase, 'earl/entity_base' autoload :URLEntity, 'earl/url_entity' autoload :URLAssembler, 'earl/url_assembler' autoload :EmailEntity, 'earl/email_entity' autoload :EmailAssembler, 'earl/email_assembler' autoload :HashInquirer, 'earl/hash_inquirer' autoload :StringInquirer, 'earl/string_inquirer' class << self def URL( source ) Earl::URLEntity.new source end def Email( source ) Earl::EmailEntity.new source end end class EarlError < StandardError; end class InvalidURLError < EarlError; end class SubclassError < EarlError; end end