class Geode::Config

Defined in:

config.cr

Constant Summary

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

Instance Method Summary

Constructor Detail

def self.load : self #

[View source]
def self.new(notices, metrics, templates) #

[View source]

Instance Method Detail

def metrics : Metrics #

[View source]
def metrics=(metrics : Metrics) #

[View source]
def notices : Hash(String, Bool) #

[View source]
def notices=(notices : Hash(String, Bool)) #

[View source]
def save : Nil #

[View source]
def templates : Templates #

[View source]
def templates=(templates : Templates) #

[View source]