Module: Config::Factory
- Defined in:
- lib/config/factory.rb,
lib/config/factory/log.rb,
lib/config/factory/environment.rb,
lib/config/factory/module_info.rb,
lib/config/factory/environments.rb,
lib/config/factory/abstract_factory.rb
Defined Under Namespace
Modules: AbstractFactory, Environments Classes: Environment
Constant Summary collapse
- NAME =
The name of this gem
'config-factory'
- VERSION =
The version of this gem
'0.0.6'
- COPYRIGHT =
The copyright notice for this gem
'Copyright (c) 2016 The Regents of the University of California'
Class Attribute Summary collapse
-
.log ⇒ Logger
Gets the logger for the module.
Class Method Summary collapse
- .included(base) ⇒ Object
-
.log_device=(value) ⇒ Object
Sets the log device.
Class Attribute Details
.log ⇒ Logger
Gets the logger for the module. Default logger logs to ‘$stdout`.
12 13 14 15 |
# File 'lib/config/factory/log.rb', line 12 def self.log self.log_device = $stdout unless @log @log end |
Class Method Details
.included(base) ⇒ Object
3 4 5 |
# File 'lib/config/factory/abstract_factory.rb', line 3 def self.included(base) base.extend(AbstractFactory) end |
.log_device=(value) ⇒ Object
Sets the log device. Defaults to ‘$stdout`
19 20 21 |
# File 'lib/config/factory/log.rb', line 19 def self.log_device=(value) @log = new_logger(logdev: value) end |