class Dwarf::Config

Defined in:

dwarf/config.cr

Constructors

Instance Method Summary

Macro Summary

Constructor Detail

def self.new(options = {} of String => Type) #

[View source]

Instance Method Detail

def [](key) #

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

[View source]
def default_scope : Type #

[View source]
def default_scope=(value) : Type #

[View source]
def default_strategies(strategies = [] of String, scope : String = "all") : Array(Type) #

Set the default strategies to use.


[View source]
def failure_app : Type #

[View source]
def failure_app=(value) : Type #

[View source]
def intercept_401 : Type #

[View source]
def intercept_401=(value) : Type #

[View source]
def register_strategy(name : String, strategy : Dwarf::Strategies::Base) #

Register a strategy


[View source]
def silence_missing_strategies! #

Do not raise an error if a missing strategy is given.


[View source]
def silence_missing_strategies? #

Checks if raise an error when missing strategy is given.


[View source]
def strategies #

Quick accessor to strategies from manager


[View source]

Macro Detail

macro hash_property(*names) #

Creates an property that simply sets and reads a key:


[View source]