abstract class EnvConfig

Defined in:

env-config.cr

Constant Summary

FLAG = /\A(?:true|false|on|off|1|0|enabled?|disabled?|yes|no)\z/i
Log = ::Log.for("env-config")
NOT_BLANK = /\S/
NUMBER = /^[0-9]+$/

predefined matchers:

Class Method Summary

Macro Summary

Class Method Detail

def self.pretty_regexp(regexp : Regex) : String #

[View source]
def self.pretty_value(value) #

[View source]
def self.read_env_variable(key, **options) #

ameba:disable Metrics/CyclomaticComplexity


[View source]
def self.to_bool(flag : Bool) : Bool #

[View source]
def self.to_bool(flag : String) : Bool #

[View source]

Macro Detail

macro config(conf = "config") #

[View source]
macro expect_env(name, **options) #

[View source]