Class: Rack::NullSession

Inherits:
Object
  • Object
show all
Defined in:
lib/rack/null_session.rb,
lib/rack/null_session/version.rb

Defined Under Namespace

Classes: DumbHash

Constant Summary collapse

VERSION =
"1.0.0"

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ NullSession

Returns a new instance of NullSession.



14
15
16
# File 'lib/rack/null_session.rb', line 14

def initialize app
  @app = app
end

Instance Method Details

#call(env) ⇒ Object



18
19
20
# File 'lib/rack/null_session.rb', line 18

def call env
  @app.call( ({ "rack.session" => DumbHash.new }).merge(env) )
end