No need for a parameter for Baguette::Configuration#get
This commit is contained in:
parent
8f566cbd79
commit
b8d5493f1c
@ -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"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user