+
+ private
+
+ # Loads the default configuration from a JSON file
+ def load_default_config
+ # Load the default
+ path = File.join(::Lyricli.root, "config", @defaults_path)
+
+ if File.exist?(path)
+ file = File.new(path, "r")
+ @config = MultiJson.decode(file.read)
+ else
+ @config = {}
+ end
+ end