module Config

Extended Modules

Defined in:

config.cr
config/format.cr

Instance Method Summary

Instance Method Detail

def read(file : Path) : Types #

Yield the block when the file format is supported, and return the corresponding Config::Types, else raise.


[View source]
def read?(file : Path) : Types? #

Yield the block when the file format is supported, and return the corresponding Config::Types.


[View source]
def to_type(format : String, &block : Proc(String)) : Types #

Yield the block when the file format is supported, and return the corresponding Config::Types, else raise.


[View source]
def to_type?(format : String, &block : Proc(String)) : Types? #

Yield the block when the file format is supported, and return the corresponding Config::Types.


[View source]