Class: TLD::Alpha3
- Inherits:
-
Object
- Object
- TLD::Alpha3
- Defined in:
- lib/tld/alpha3.rb
Class Method Summary collapse
Class Method Details
.find(klass) ⇒ Object
7 8 9 10 |
# File 'lib/tld/alpha3.rb', line 7 def find(klass) tld = klass.tld return tld.match(/^\w\w$/) ? IsoCountryCodes.find(TLD::MAP[tld.to_sym] || tld).alpha3 : nil end |