Module: Sinatra::Session::Cookie
- Defined in:
- lib/sinatra/session.rb
Overview
A wrapper for the Rack::Session::Cookie middleware that allows an options hash to be returned from the block given to the use
statement instead of being provided up front.
Class Method Summary collapse
Class Method Details
.new(app, options = {}) ⇒ Object
43 44 45 46 |
# File 'lib/sinatra/session.rb', line 43 def self.new(app, ={}) .merge!(yield) if block_given? Rack::Session::Cookie.new(app, ) end |