Class: CGI::Session::NullStore

Inherits:
Object
  • Object
show all
Defined in:
lib/cgi/session.rb

Overview

Dummy session storage class.

Implements session storage place holder. No actual storage will be done.

Instance Method Summary collapse

Constructor Details

#initialize(session, option = nil) ⇒ NullStore

Create a new NullStore instance.

session is the session this instance is associated with. option is a list of initialisation options. None are currently recognised.



535
536
# File 'lib/cgi/session.rb', line 535

def initialize(session, option=nil)
end

Instance Method Details

#closeObject

Close session storage.

A no-op.



552
553
# File 'lib/cgi/session.rb', line 552

def close
end

#deleteObject

Delete the session state.

A no-op.



558
559
# File 'lib/cgi/session.rb', line 558

def delete
end

#restoreObject

Restore (empty) session state.



539
540
541
# File 'lib/cgi/session.rb', line 539

def restore
  {}
end

#updateObject

Update session state.

A no-op.



546
547
# File 'lib/cgi/session.rb', line 546

def update
end