Class: Reactive::Mvc::Controller::Flash::FlashNow
- Inherits:
-
Object
- Object
- Reactive::Mvc::Controller::Flash::FlashNow
- Defined in:
- lib/reactive-mvc/controller/flash.rb
Overview
:nodoc:
Instance Method Summary collapse
- #[](k) ⇒ Object
- #[]=(k, v) ⇒ Object
-
#initialize(flash) ⇒ FlashNow
constructor
A new instance of FlashNow.
Constructor Details
#initialize(flash) ⇒ FlashNow
Returns a new instance of FlashNow.
37 38 39 |
# File 'lib/reactive-mvc/controller/flash.rb', line 37 def initialize(flash) @flash = flash end |
Instance Method Details
#[](k) ⇒ Object
47 48 49 |
# File 'lib/reactive-mvc/controller/flash.rb', line 47 def [](k) @flash[k] end |
#[]=(k, v) ⇒ Object
41 42 43 44 45 |
# File 'lib/reactive-mvc/controller/flash.rb', line 41 def []=(k, v) @flash[k] = v @flash.discard(k) v end |