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).

src/conn.qz:56

Methods

def current -> Hash[Symbol, String]

src/conn.qz:56

def kept -> Hash[Symbol, String]

src/conn.qz:56

def to_h -> Hash[Symbol, Object]

The fields as a Hash, by name.

src/conn.qz:58

def with(*, current: Hash[Symbol, String] = …, kept: Hash[Symbol, String] = …) -> Bezel::Flash

A copy with the fields given replaced.

src/conn.qz:58

def [](kind: Symbol) -> String?

The message of kind the previous request left, or one now put.

src/conn.qz:58

def put(kind: Symbol, message: String) -> Bezel::Flash

The flash with message kept for the next request.

src/conn.qz:61

def now(kind: Symbol, message: String) -> Bezel::Flash

The flash with message shown in this request only.

src/conn.qz:64