Class: Rack::Session::Cookie::Base64::Marshal
- Inherits:
-
Rack::Session::Cookie::Base64
- Object
- Rack::Session::Cookie::Base64
- Rack::Session::Cookie::Base64::Marshal
- Defined in:
- lib/rack/session/cookie.rb
Overview
Encode session cookies as Marshaled Base64 data
Instance Method Summary collapse
Instance Method Details
#decode(str) ⇒ Object
61 62 63 |
# File 'lib/rack/session/cookie.rb', line 61 def decode(str) ::Marshal.load(super(str)) rescue nil end |
#encode(str) ⇒ Object
57 58 59 |
# File 'lib/rack/session/cookie.rb', line 57 def encode(str) super(::Marshal.dump(str)) end |