Class: ActionController::Flash::FlashNow
- Defined in:
- lib/action_controller/flash.rb
Overview
:nodoc:
Instance Method Summary collapse
- #[]=(k, v) ⇒ Object
-
#initialize(flash) ⇒ FlashNow
constructor
A new instance of FlashNow.
Constructor Details
#initialize(flash) ⇒ FlashNow
Returns a new instance of FlashNow.
34 35 36 |
# File 'lib/action_controller/flash.rb', line 34 def initialize flash @flash = flash end |
Instance Method Details
#[]=(k, v) ⇒ Object
38 39 40 41 42 |
# File 'lib/action_controller/flash.rb', line 38 def []=(k, v) @flash[k] = v @flash.discard(k) v end |