lib/spidr/cookie_jar.rb
def []=(host,cookies)
      collected = self[host]

      cookies.each do |key,value|
        if collected[key] != value
          collected.merge!(cookies)
          @dirty << host

          break
        end
      end

      return cookies
    end
def []=(host,cookies)
      collected = self[host]

      cookies.each do |key,value|
        if collected[key] != value
          collected.merge!(cookies)
          @dirty << host

          break
        end
      end

      return cookies
    end
def []= ( host , cookies ) collected = self [ host ] cookies . each do | key , value | if collected [ key ] != value collected . merge! ( cookies ) @dirty << host break end end return cookies end
Add a cookie to the jar for a particular domain.

 @param [String] host
   Host or domain name to associate with the cookie.

 @param [Hash{String => String}] cookies
   Cookie params.

 @since 0.2.2
Add a cookie to the jar for a particular domain .