class

Garlicoin::Config

Inherits Reference < Object

Constants

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

Constructors

new(server : Hash(String, String) = {} of String => String, nodes : Array(String) = [] of String)
Source

Class methods

load(path : String = DEFAULT_CONFIG_LOCATION)
Source

Instance methods

get(key)
Source
nodes
Source
nodes=(nodes : Array(String))
Source
server
Source
server=(server : Hash(String, String))
Source
set(key, value)
Source