Class: AppConfig::Configuration
- Inherits:
-
Object
- Object
- AppConfig::Configuration
- Defined in:
- lib/app-config.rb
Overview
Private: Holds the configuration.
Instance Attribute Summary collapse
-
#auto_reload ⇒ Object
Returns the value of attribute auto_reload.
-
#config_file ⇒ Object
Returns the value of attribute config_file.
-
#environment ⇒ Object
Returns the value of attribute environment.
Instance Method Summary collapse
-
#defaults ⇒ Object
Private: Set default configuration values that haven’t been set by the user.
Instance Attribute Details
#auto_reload ⇒ Object
Returns the value of attribute auto_reload.
67 68 69 |
# File 'lib/app-config.rb', line 67 def auto_reload @auto_reload end |
#config_file ⇒ Object
Returns the value of attribute config_file.
66 67 68 |
# File 'lib/app-config.rb', line 66 def config_file @config_file end |
#environment ⇒ Object
Returns the value of attribute environment.
65 66 67 |
# File 'lib/app-config.rb', line 65 def environment @environment end |
Instance Method Details
#defaults ⇒ Object
Private: Set default configuration values that haven’t been set by the user
71 72 73 |
# File 'lib/app-config.rb', line 71 def defaults @auto_reload ||= @environment == "production" ? false : true end |