Sha256: bd6ec7d8f2fc2cbbe3180457372cc557a8d6884594467960ce8591009a3b5d43
Contents?: true
Size: 553 Bytes
Versions: 1
Compression:
Stored size: 553 Bytes
Contents
require 'confuse/config_mixin' require 'confuse/dsl' module Confuse # The default module used for configuration. module Config extend ConfigMixin end # Super class for configuration in order to have multiple instances. class ConfigBase include ConfigMixin extend DSL def initialize(*paths) load_namespaces(self.class.namespaces) if paths.flatten.empty? read_files(self.class.config_path.flatten) else read_files(paths.flatten) end end def config self end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
confuse-0.1.3 | lib/confuse/config.rb |