Sha256: 3add358a9c19043b6990156bed846d03762d9aa192b800ef34e10b76dea536a4
Contents?: true
Size: 445 Bytes
Versions: 2
Compression:
Stored size: 445 Bytes
Contents
require 'singleton' module Spigot class Configuration include Singleton attr_accessor :path, :translations, :options_key, :logger @@defaults = { path: 'config/spigot', translations: nil, options_key: 'spigot', logger: nil } def self.defaults @@defaults end def initialize reset end def reset @@defaults.each_pair{|k,v| self.send("#{k}=",v)} end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spigot-0.1.0 | lib/spigot/configuration.rb |
spigot-0.0.1 | lib/spigot/configuration.rb |