code: def cookies_for_host(host)
        host_cookies = (@params[host] || {})
        sub_domains  = host.split('.')
  
        while sub_domains.length > 2
          sub_domains.shift
  
          if (parent_cookies = @params[sub_domains.join('.')])
            parent_cookies.each do |name,value|
              # copy in the parent cookies, only if they haven't been
              # overridden yet.
              unless host_cookies.has_key?(name)
                host_cookies[name] = value
              end
            end
          end
        end
  
        return host_cookies
      end
docs: Returns raw cookie value pairs for a given host. Includes cookies set on
   parent domain(s).
  
   @param [String] host
     The name of the host.
  
   @return [Hash{String => String}]
     Cookie params.
  
   @since 0.2.7