class

Geode::Config

Inherits Reference / Object

Constants

CACHE_DIR = {% if flag?(:win32) %} Path[ENV["LOCALAPPDATA"], "geode"] {% else %} Path[ENV["XDG_CACHE_HOME"]? || Path.home / ".config" / "geode"] {% end %}
LIBRARY_DIR = {% if flag?(:win32) %} Path[ENV["APPDATA"], "geode"] {% else %} Path[ENV["XDG_DATA_HOME"]? || Path.home / ".local" / "share" / "geode"] {% end %}
PATH = CACHE_DIR / "config.ini"
TEMPLATES = LIBRARY_DIR / "templates"

Constructors

load
Source
new(notices, metrics, templates)
Source

Instance methods

metrics
Source
metrics=(metrics : Metrics)
Source
notices
Source
notices=(notices : Hash(String, Bool))
Source
save
Source
templates
Source
templates=(templates : Templates)
Source

Nested types