class

PublicSuffix::CachedList

Inherits Reference < Object

Fetches/manages/caches the list of rules.

Constructors

new(config : PublicSuffix::Config)
Source

Instance methods

exists?

Returns true if the cached file exists.

Source
expired?(now = Time.local)

Returns true if the cached file has expired.

Source
rules

Returns public suffix list rules. Fetches the rules from the source, and caches them if instructed to do so. The cached version will be used until the expiry period is past.

Source