lib/confuse/config.rb in confuse-0.1.0 vs lib/confuse/config.rb in confuse-0.1.1
- old
+ new
@@ -10,12 +10,13 @@
# Super class for configuration in order to have multiple instances.
class ConfigBase
include ConfigMixin
extend DSL
- def initialize
+ def initialize(*paths)
load_namespaces(self.class.namespaces)
read_files(self.class.config_path)
+ read_files(paths)
end
def config
self
end