Class: Rack::Session::File::YAML

Inherits:
Abstract
  • Object
show all
Defined in:
lib/rack/session/file/yaml.rb

Defined Under Namespace

Classes: Transaction

Constant Summary

Constants inherited from Abstract

Abstract::DEFAULT_OPTIONS

Instance Method Summary collapse

Methods inherited from Abstract

#destroy_session, #get_session, #set_session

Constructor Details

#initialize(app, options = {}) ⇒ YAML

Returns a new instance of YAML.



12
13
14
15
# File 'lib/rack/session/file/yaml.rb', line 12

def initialize(app, options = {})
  super
  @transaction_options['yaml'] = @default_options.delete(:yaml) || {}
end

Instance Method Details

#new_transaction(env) ⇒ Object



17
18
19
# File 'lib/rack/session/file/yaml.rb', line 17

def new_transaction(env)
  Rack::Session::File::YAML::Transaction.new(env, @transaction_options)
end