struct

Kamil::Config

Inherits YAML::Serializable < Struct < Value < Object

Master project configuration container.

Constructors

default

Returns the canonical default configuration.

Source
load(path : Path | String) : Config

Loads configuration from a file path, falling back to default if file is missing or empty.

Source
new(site : SiteConfig = SiteConfig.new, paths : PathsConfig = PathsConfig.new, database : DatabaseConfig = DatabaseConfig.new, server : ServerConfig = ServerConfig.new)
Source
new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Source

Instance methods

database
Source
paths
Source
server
Source
site
Source

Nested types