lib/wmap/utils/domain_root.rb
# Test a host string to see if it's a valid Internet root domain
Test a host string to see if it's a valid Internet root domain
Test a host string to see if it ' s a valid Internet root domain
def is_domain_root? (domain)
	  puts "Validate the domain name is valid: #{domain}" if @verbose
		domain=domain.strip.downcase
		return domain == get_domain_root(domain)
	rescue => ee
		puts "Exception on method #{__method__} for #{domain}: #{ee}" if @verbose
		return false
	end
def is_domain_root? ( domain ) puts "Validate the domain name is valid: #{domain}" if @verbose domain = domain . strip . downcase return domain == get_domain_root ( domain ) rescue => ee puts "Exception on method #{__method__} for #{domain}: #{ee}" if @verbose return false end
Test a host string to see if it's a valid Internet root domain
Test a host string to see if it ' s a valid Internet root domain
domain
<not_specific>