Module: TLDv
- Defined in:
- lib/tldv.rb,
lib/tldv/version.rb
Defined Under Namespace
Classes: Error
Constant Summary collapse
- VERSION =
"0.1.0"
Class Method Summary collapse
-
.valid?(tld) ⇒ bool
checks if a TLD is valid.
Class Method Details
.valid?(tld) ⇒ bool
checks if a TLD is valid
14 15 16 |
# File 'lib/tldv.rb', line 14 def valid?(tld) Data::TLDS.include?(tld.downcase) end |