module Totem::ConfigTypes

Overview

Config types

Defined in:

totem/config_types.cr
totem/config_types/env.cr
totem/config_types/json.cr
totem/config_types/yaml.cr

Class Method Summary

Class Method Detail

def self.[](name : String) #

Returns the value for the key given by key.


[View source]
def self.has_keys?(name : String) #

Returns true when key given by key exists, otherwise false.


[View source]
def self.keys #

Returns a new Array with all the keys.


[View source]
def self.register(adapter : Adapter, name : String, *shortcuts) #

Register config type

Totem::ConfigTypes.register(Totem::ConfigTypes::YAML.new, "yaml", "yml")

[View source]
def self.register_adapter(name : String, adapter : Adapter) #

Register config type with name

DEPRECATED Use .register directly instead.

Totem::ConfigTypes.register_adapter("yaml", Totem::ConfigTypes::YAML.new)

[View source]
def self.register_alias(shortcut : String, name : String) #

Set alias for registered config type

DEPRECATED Use .register directly instead.

Totem::ConfigTypes.register_alias("yml", "yaml")

[View source]