module Totem::ConfigTypes
Overview
Config types
Defined in:
totem/config_types.crtotem/config_types/env.cr
totem/config_types/json.cr
totem/config_types/yaml.cr
Class Method Summary
- 
        .[](name : String)
        
          Returns the value for the key given by key. 
- 
        .has_keys?(name : String)
        
          Returns truewhen key given by key exists, otherwisefalse.
- 
        .keys
        
          Returns a new Arraywith all the keys.
- 
        .register(adapter : Adapter, name : String, *shortcuts)
        
          Register config type 
- 
        .register_adapter(name : String, adapter : Adapter)
        
          Register config type with name 
- 
        .register_alias(shortcut : String, name : String)
        
          Set alias for registered config type 
Class Method Detail
Register config type
Totem::ConfigTypes.register(Totem::ConfigTypes::YAML.new, "yaml", "yml")Register config type with name
DEPRECATED  Use .register directly instead.
Totem::ConfigTypes.register_adapter("yaml", Totem::ConfigTypes::YAML.new)