class

EnvConfig

Inherits Reference < Object

Constants

FLAG = /\A(?:true|false|on|off|1|0|enabled?|disabled?|yes|no)\z/i
LOGS = IO::Memory.new
NOT_BLANK = /\S/
NUMBER = /^[0-9]+$/

predefined matchers:

Class methods

pretty_regexp(regexp : Regex) : String
Source
pretty_value(value)
Source
read_env_variable(key, **options)

ameba:disable Metrics/CyclomaticComplexity

Source
to_bool(flag : Bool) : Bool
Source
to_bool(flag : String) : Bool
Source

Macros

config(conf = "config")
Source
expect_env(name, **options)
Source