Class: ActionDispatch::Cookies::PermanentCookieJar
- Includes:
- ChainedCookieJars
- Defined in:
- actionpack/lib/action_dispatch/middleware/cookies.rb
Overview
:nodoc:
Instance Method Summary collapse
- #[](name) ⇒ Object
- #[]=(name, options) ⇒ Object
-
#initialize(parent_jar, key_generator, options = {}) ⇒ PermanentCookieJar
constructor
A new instance of PermanentCookieJar.
Methods included from ChainedCookieJars
#encrypted, #permanent, #signed, #signed_or_encrypted
Constructor Details
#initialize(parent_jar, key_generator, options = {}) ⇒ PermanentCookieJar
Returns a new instance of PermanentCookieJar.
364 365 366 367 368 |
# File 'actionpack/lib/action_dispatch/middleware/cookies.rb', line 364 def initialize(parent_jar, key_generator, = {}) @parent_jar = parent_jar @key_generator = key_generator @options = end |
Instance Method Details
#[](name) ⇒ Object
370 371 372 |
# File 'actionpack/lib/action_dispatch/middleware/cookies.rb', line 370 def [](name) @parent_jar[name.to_s] end |