Sha256: 817c42f320b677e7eacdcf74f54a2329e8760762db36d5b2e2b0d662820ef9c6
Contents?: true
Size: 356 Bytes
Versions: 2
Compression:
Stored size: 356 Bytes
Contents
module Kissable class SinatraCookieAdapter attr_reader :request, :response def initialize(request, response) @request = request @response = response end def [](cookie_name) request.cookies[cookie_name] end def []=(cookie_name, cookie_data) response.set_cookie(cookie_name, cookie_data) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kissable-1.0.1 | lib/kissable/sinatra_cookie_adapter.rb |
kissable-1.0.0a1 | lib/kissable/sinatra_cookie_adapter.rb |