PublicSuffix::Rule::Exception
Inherits PublicSuffix::Rule::Base < Struct < Value < Object
Exception represents an exception rule (e.g. !parliament.uk).
Class methods
build(content, _private = false)
Initializes a new rule from the content.
@param content [String] the content of the rule @param private [Boolean]
Instance methods
decompose(domain : String) : Tuple(String | Nil, String | Nil)
Decomposes the domain name according to rule properties.
@param [String, #to_s] name The domain name to decompose @return [Array<String>] The array with [trd + sld, tld].
parts
dot-split rule value and returns all rule parts in the order they appear in the value. The leftmost label is not considered a label.
See http://publicsuffix.org/format/: If the prevailing rule is a exception rule, modify it by removing the leftmost label.
@return [Array<String>]
tail
Source