No need for a parameter for Baguette::Configuration#get

This commit is contained in:
Karchnu 2020-10-25 00:39:40 +02:00
parent 8f566cbd79
commit b8d5493f1c

View File

@ -12,7 +12,7 @@ class Baguette::Configuration
# Check for provided file first, # Check for provided file first,
# then $XDG_CONFIG_HOME/<class>.yml, # then $XDG_CONFIG_HOME/<class>.yml,
# then /etc/baguette/<class>.yml. # then /etc/baguette/<class>.yml.
def self.get(file : String?) def self.get(file : String? = nil)
filename = "/" + (self.name.downcase.gsub /baguette::configuration::/, "") + ".yml" filename = "/" + (self.name.downcase.gsub /baguette::configuration::/, "") + ".yml"
directory = "/baguette" directory = "/baguette"