class Garlicoin::Config

Defined in:

garlicoin/config.cr

Constant Summary

DEFAULT_CONFIG_LOCATION = File.join(ENV["HOME"], "/.garlicoin/garlicoin.conf")

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(server : Hash(String, String) = {} of String => String, nodes : Array(String) = [] of String) #

[View source]

Class Method Detail

def self.load(path : String = DEFAULT_CONFIG_LOCATION) #

[View source]

Instance Method Detail

def get(key) #

[View source]
def nodes : Array(String) #

[View source]
def nodes=(nodes : Array(String)) #

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

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

[View source]
def set(key, value) #

[View source]