class PublicSuffix::Rule::Normal

def decompose(domain)

Returns:
  • (Array) - The array with [trd + sld, tld].

Parameters:
  • domain (#to_s) -- The domain name to decompose
def decompose(domain)
  suffix = parts.join('\.')
  matches = domain.to_s.match(/^(.*)\.(#{suffix})$/)
  matches ? matches[1..2] : [nil, nil]
end