Class: ActionDispatch::Flash::FlashNow
Do not use. This class is for internal use only.
Relationships & Source Files | |
Inherits: | Object |
Defined in: | actionpack/lib/action_dispatch/middleware/flash.rb |
Class Method Summary
- .new(flash) ⇒ FlashNow constructor
Instance Attribute Summary
-
#alert=(message)
writeonly
Convenience accessor for
=
. - #flash rw
-
#notice=(message)
writeonly
Convenience accessor for
=
.
Instance Method Summary
Constructor Details
.new(flash) ⇒ FlashNow
Instance Attribute Details
#alert=(message) (writeonly)
Convenience accessor for =
.
# File 'actionpack/lib/action_dispatch/middleware/flash.rb', line 109
def alert=( ) self[:alert] = end
#flash (rw)
[ GitHub ]# File 'actionpack/lib/action_dispatch/middleware/flash.rb', line 91
attr_accessor :flash
#notice=(message) (writeonly)
Convenience accessor for =
.
# File 'actionpack/lib/action_dispatch/middleware/flash.rb', line 114
def notice=( ) self[:notice] = end
Instance Method Details
#[](k)
[ GitHub ]# File 'actionpack/lib/action_dispatch/middleware/flash.rb', line 104
def [](k) @flash[k.to_s] end
#[]=(k, v)
[ GitHub ]# File 'actionpack/lib/action_dispatch/middleware/flash.rb', line 97
def []=(k, v) k = k.to_s @flash[k] = v @flash.discard(k) v end