No need for a parameter for `Baguette::Configuration#get`
parent
8f566cbd79
commit
b8d5493f1c
|
@ -12,7 +12,7 @@ class Baguette::Configuration
|
|||
# Check for provided file first,
|
||||
# then $XDG_CONFIG_HOME/<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"
|
||||
directory = "/baguette"
|
||||
|
||||
|
|
Loading…
Reference in New Issue