]>
git.r.bdr.sh - rbdr/lyricli.rb/blob - lib/lyricli/config.rb
5 @config_path = "~/.lyricli.conf"
9 @
@instance = Config
.new
24 private_class_method
:new
28 # TODO: Apart from this, load a default yml that will be used for this.
29 # And just extend everything from the user's config.
31 path
= File
.expand_path(@config_path)
33 file
= File
.new(path
, "r")
34 MultiJson
.decode(file
.read
)
41 path
= File
.expand_path(@config_path)
42 file
= File
.new(path
, "w")
43 file
.print(MultiJson
.encode(@config))