Sha256: f959a71ddba88909ea74c2b2114554cde15f982b37bb74124fd127b0df72c0a9
Contents?: true
Size: 498 Bytes
Versions: 1
Compression:
Stored size: 498 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) read_files(self.class.config_path.flatten) read_files(paths.flatten) end def config self end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
confuse-0.1.2 | lib/confuse/config.rb |