class Glassy::Kernel::Config

Defined in:

glassy-kernel/config.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(file_paths : Array(String)) #

[View source]
def self.new(text : String) #

[View source]

Instance Method Detail

def get(key : String, default : String | Nil = nil) : String | Nil #

[View source]
def get_Bool(key : String, default : Bool | Nil = nil) : Bool | Nil #

[View source]
def get_bool(key : String, default : Bool | Nil = nil) : Bool | Nil #

[View source]
def get_f(key : String, default : Float32 | Nil = nil) : Float32 | Nil #

[View source]
def get_Float32(key : String, default : Float32 | Nil = nil) : Float32 | Nil #

[View source]
def get_i(key : String, default : Int32 | Nil = nil) : Int32 | Nil #

[View source]
def get_Int32(key : String, default : Int32 | Nil = nil) : Int32 | Nil #

[View source]
def get_s(key : String, default : String | Nil = nil) : String | Nil #

[View source]
def get_String(key : String, default : String | Nil = nil) : String | Nil #

[View source]