class PublicSuffix::CachedList
- PublicSuffix::CachedList
- Reference
- Object
Overview
Fetches/manages/caches the list of rules.
Defined in:
public_suffix/cached_list.crConstructors
Instance Method Summary
-
#exists?
Returns true if the cached file exists.
-
#expired?(now = Time.local)
Returns true if the cached file has expired.
-
#rules
Returns public suffix list rules.
Constructor Detail
Instance Method Detail
def 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.