class Dwarf::Config
- Dwarf::Config
- Reference
- Object
Defined in:
dwarf/config.crConstructors
Instance Method Summary
- #[](key)
- #[]=(key, value)
- #default_scope : Type
- #default_scope=(value) : Type
-
#default_strategies(strategies = [] of String, scope : String = "all") : Array(Type)
Set the default strategies to use.
- #failure_app : Type
- #failure_app=(value) : Type
- #intercept_401 : Type
- #intercept_401=(value) : Type
-
#register_strategy(name : String, strategy : Dwarf::Strategies::Base)
Register a strategy
-
#silence_missing_strategies!
Do not raise an error if a missing strategy is given.
-
#silence_missing_strategies?
Checks if raise an error when missing strategy is given.
-
#strategies
Quick accessor to strategies from manager
Macro Summary
-
hash_property(*names)
Creates an property that simply sets and reads a key:
Constructor Detail
Instance Method Detail
Set the default strategies to use.