Class: ActionDispatch::Flash::FlashNow
- Inherits:
-
Object
- Object
- ActionDispatch::Flash::FlashNow
- Defined in:
- actionpack/lib/action_dispatch/middleware/flash.rb
Overview
:nodoc:
Instance Method Summary (collapse)
- - (Object) [](k)
- - (Object) []=(k, v)
-
- (Object) alert=(message)
Convenience accessor for flash.now=.
-
- (FlashNow) initialize(flash)
constructor
A new instance of FlashNow.
-
- (Object) notice=(message)
Convenience accessor for flash.now=.
Constructor Details
- (FlashNow) initialize(flash)
A new instance of FlashNow
44 45 46 |
# File 'actionpack/lib/action_dispatch/middleware/flash.rb', line 44 def initialize(flash) @flash = flash end |
Instance Method Details
- (Object) [](k)
54 55 56 |
# File 'actionpack/lib/action_dispatch/middleware/flash.rb', line 54 def [](k) @flash[k] end |
- (Object) []=(k, v)
48 49 50 51 52 |
# File 'actionpack/lib/action_dispatch/middleware/flash.rb', line 48 def []=(k, v) @flash[k] = v @flash.discard(k) v end |