Class: AppConfig::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/app-config.rb

Overview

Private: Holds the configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#auto_reloadObject

Returns the value of attribute auto_reload.



67
68
69
# File 'lib/app-config.rb', line 67

def auto_reload
  @auto_reload
end

#config_fileObject

Returns the value of attribute config_file.



66
67
68
# File 'lib/app-config.rb', line 66

def config_file
  @config_file
end

#environmentObject

Returns the value of attribute environment.



65
66
67
# File 'lib/app-config.rb', line 65

def environment
  @environment
end

Instance Method Details

#defaultsObject

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