Class: Rack::Protection::EncryptedCookie::Marshal

Inherits:
Object
  • Object
show all
Defined in:
lib/rack/protection/encrypted_cookie.rb

Instance Method Summary collapse

Instance Method Details

#decode(str) ⇒ Object



136
137
138
# File 'lib/rack/protection/encrypted_cookie.rb', line 136

def decode(str)
  ::Marshal.load(str) if str
end

#encode(str) ⇒ Object



132
133
134
# File 'lib/rack/protection/encrypted_cookie.rb', line 132

def encode(str)
  ::Marshal.dump(str)
end