Class: Rack::Session::Cookie::Marshal
- Inherits:
-
Object
- Object
- Rack::Session::Cookie::Marshal
- Defined in:
- lib/rack/session/cookie.rb
Instance Method Summary collapse
Instance Method Details
#decode(str) ⇒ Object
152 153 154 |
# File 'lib/rack/session/cookie.rb', line 152 def decode(str) ::Marshal.load(str) if str end |
#encode(str) ⇒ Object
148 149 150 |
# File 'lib/rack/session/cookie.rb', line 148 def encode(str) ::Marshal.dump(str) end |