class

Speak::Config

Inherits JSON::Serializable / Reference / Object

Configuration loader

Constructors

load(path : String = "./speak/config.json") : Config

Load config from JSON file

Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Class methods

load?(path : String = "./speak/config.json") : Config | Nil

Load config or return nil if not found

Source

Instance methods

active
Source
active=(active : ActiveSettings)
Source
detected
Source
detected=(detected : DetectedRam)
Source