class Rack::Session::Cookie::Base64::Marshal - rack-1.6.4 Documentation

# class Rack::Session::Cookie::Base64::Marshal

Encode session cookies as Marshaled Base64 data

### Public Instance Methods

decode(str) click to toggle source
Calls superclass method Rack::Session::Cookie::Base64#decode

    # File lib/rack/session/cookie.rb, line 64
    def decode(str)
      return unless str
      ::Marshal.load(super(str)) rescue nil
    end

encode(str) click to toggle source
Calls superclass method Rack::Session::Cookie::Base64#encode

    # File lib/rack/session/cookie.rb, line 60
    def encode(str)
      super(::Marshal.dump(str))
    end