Class: RubyPitaya::Config
- Inherits:
-
Object
- Object
- RubyPitaya::Config
- Defined in:
- lib/rubypitaya/core/config.rb
Instance Attribute Summary collapse
-
#config_core_override ⇒ Object
writeonly
Sets the attribute config_core_override.
Instance Method Summary collapse
- #[](key) ⇒ Object
- #auto_reload ⇒ Object
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
9 10 11 12 |
# File 'lib/rubypitaya/core/config.rb', line 9 def initialize @config_core = ConfigCore.new @config_core_override = nil end |
Instance Attribute Details
#config_core_override=(value) ⇒ Object (writeonly)
Sets the attribute config_core_override
7 8 9 |
# File 'lib/rubypitaya/core/config.rb', line 7 def config_core_override=(value) @config_core_override = value end |
Instance Method Details
#[](key) ⇒ Object
14 15 16 17 18 |
# File 'lib/rubypitaya/core/config.rb', line 14 def [](key) result = @config_core_override[key] unless @config_core_override.nil? result = @config_core[key] if result.nil? result end |
#auto_reload ⇒ Object
20 21 22 23 |
# File 'lib/rubypitaya/core/config.rb', line 20 def auto_reload @config_core.auto_reload @config_core_override.auto_reload unless @config_core_override.nil? end |