Method: Sessions#initialize
- Defined in:
- lib/rwd/rwd.rb
#initialize(rack, cleanup) ⇒ Sessions
Returns a new instance of Sessions.
1146 1147 1148 1149 1150 |
# File 'lib/rwd/rwd.rb', line 1146 def initialize(rack, cleanup) @rack = rack.to_s @cleanup = SessionCleanup.new(self, 3600, 24*3600) if cleanup @sessions = {} end |