class FlashContainer
- FlashContainer
- Reference
- Object
Overview
Flash message container.
Defined in:
flash_container.crConstant Summary
-
VERSION =
"0.1.0"
-
Shard version.
Constructors
Class Method Summary
-
.from_session(json : String)
Creates FlashContainer instance based on stringified JSON.
- .from_session(_json : Nil)
- .key : String
- .key=(key : String)
Instance Method Summary
- #[](key : Symbol)
- #[]=(key : Symbol, value : String)
- #[]?(key : Symbol)
- #[]?(key : String)
- #each(&block)
- #fetch(key : String, default_value : String?)
- #fetch(key : Symbol, default_value : String?)
- #fetch(key : String)
- #fetch(key : Symbol)
- #keep(key = nil)
- #now(key, value : String?)
- #to_session