module RelaxedCookieJar::CookieValidation::ClassMethods
Public Instance Methods
compute_search_domains_for_host_with_recursion(host)
click to toggle source
# File lib/relaxed_cookiejar/cookie_validation.rb, line 27 def compute_search_domains_for_host_with_recursion(host) host = effective_host host result = [host] if host =~ CookieJar::CookieValidation::IPADDR result else result + recursive_search_domain(host) end end
recursive_search_domain(host)
click to toggle source
# File lib/relaxed_cookiejar/cookie_validation.rb, line 38 def recursive_search_domain(host) m = CookieJar::CookieValidation::BASE_HOSTNAME.match(host) result = [".#{host}"] if m.nil? result else result + recursive_search_domain(m[1]) end end