Module: Ronin::Support::Network::TLD

Defined in:
lib/ronin/support/network/tld.rb,
lib/ronin/support/network/tld/list.rb

Overview

Manages the list of Top-Level-Domains (TLDs).

Defined Under Namespace

Classes: List

Class Method Summary collapse

Class Method Details

.listList

Downloads/updates then loads the cached file (~/.cache/ronin/ronin-support/tlds-alpha-by-domain.txt).

Returns:

  • (List)

    The loaded list file.



35
36
37
38
39
40
# File 'lib/ronin/support/network/tld.rb', line 35

def self.list
  @list ||= begin
              List.update
              List.load_file
            end
end