Class: Rack::Protection::EncryptedCookie::Marshal
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rack-protection-3.0.5/lib/rack/protection/encrypted_cookie.rb
Instance Method Summary collapse
Instance Method Details
#decode(str) ⇒ Object
136 137 138 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rack-protection-3.0.5/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/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rack-protection-3.0.5/lib/rack/protection/encrypted_cookie.rb', line 132 def encode(str) ::Marshal.dump(str) end |