class FlashContainer

Overview

Flash message container.

Defined in:

flash_container.cr

Constant Summary

VERSION = "0.1.0"

Shard version.

Constructors

Class Method Summary

Instance Method Summary

Macro Summary

Constructor Detail

def self.new(store) #

[View source]
def self.new #

[View source]

Class Method Detail

def self.from_session(json : String) #

Creates FlashContainer instance based on stringified JSON.


[View source]
def self.from_session(_json : Nil) #

[View source]
def self.key : String #

[View source]
def self.key=(key : String) #

[View source]

Instance Method Detail

def [](key : Symbol) #

[View source]
def []=(key : Symbol, value : String) #

[View source]
def []?(key : Symbol) #

[View source]
def []?(key : String) #

[View source]
def each(&block) #

[View source]
def fetch(key : String, default_value : String?) #

[View source]
def fetch(key : Symbol, default_value : String?) #

[View source]
def fetch(key : String) #

[View source]
def fetch(key : Symbol) #

[View source]
def keep(key = nil) #

[View source]
def now(key, value : String?) #

[View source]
def to_session #

[View source]

Macro Detail

macro method_missing(call) #

[View source]