Sha256: 8b4cbbf90c74a748b61c4c11f6162eb7bbd31372cc813f79c490d913b2adce97
Contents?: true
Size: 491 Bytes
Versions: 1
Compression:
Stored size: 491 Bytes
Contents
module Timber class Config include Patterns::DelegatedSingleton attr_writer :application_key, :enabled, :logger def application_key @application_key ||= ENV['TIMBER_KEY'] end def enabled return @enabled if defined?(@enabled) @enabled = true end def enabled? enabled == true end # Internal logger for the Timber library, only for debugging purposes. def logger @logger ||= InternalLogger.new(nil) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
timberio-1.0.0.beta1 | lib/timber/config.rb |