Class: Rack::Session::Cookie::Base64
- Inherits:
-
Object
- Object
- Rack::Session::Cookie::Base64
- Defined in:
- lib/rack/session/cookie.rb
Overview
Encode session cookies as Base64
Defined Under Namespace
Instance Method Summary collapse
Instance Method Details
#decode(str) ⇒ Object
53 54 55 |
# File 'lib/rack/session/cookie.rb', line 53 def decode(str) str.unpack('m').first end |
#encode(str) ⇒ Object
49 50 51 |
# File 'lib/rack/session/cookie.rb', line 49 def encode(str) [str].pack('m') end |