class Conf

Defined in:

conf.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(file : String | Path) #

[View source]

Instance Method Detail

def [](key : String) #

[View source]
def []=(key : String, value : TOML::Type) #

[View source]
def as_a(key : String) #

[View source]
def as_a?(key : String, default : Array(TOML::Type) = [] of Array(TOML::Type)) #

[View source]
def as_b(key : String) #

[View source]
def as_b?(key : String, default : Bool = false) #

[View source]
def as_f(key : String) #

[View source]
def as_f?(key : String, default : Float64 = 0) #

[View source]
def as_h(key : String) #

[View source]
def as_h?(key : String, default : TOML::Table) #

[View source]
def as_i(key : String) #

[View source]
def as_i?(key : String, default : Int64 = 0) #

[View source]
def as_s(key : String) #

[View source]
def as_s?(key : String, default : String = "") #

[View source]
def as_t(key : String) #

[View source]
def as_t?(key : String, default : Time) #

[View source]
def file : Path | String #

[View source]
def reload #

[View source]