data Bezel::Flash
The flash: messages kept for the next request (put), and those the
previous request left ([]). the flash plug (bezel#6) carries
them in the session (kept is what goes there).
Methods
def current -> Hash[Symbol, String]
def kept -> Hash[Symbol, String]
def to_h -> Hash[Symbol, Object]
The fields as a Hash, by name.
def with(*, current: Hash[Symbol, String] = …, kept: Hash[Symbol, String] = …) -> Bezel::Flash
A copy with the fields given replaced.
def [](kind: Symbol) -> String?
The message of kind the previous request left, or one now put.
def put(kind: Symbol, message: String) -> Bezel::Flash
The flash with message kept for the next request.
def now(kind: Symbol, message: String) -> Bezel::Flash
The flash with message shown in this request only.