Class: QTimetrap::Configuration
- Inherits:
-
Object
- Object
- QTimetrap::Configuration
- Defined in:
- lib/qtimetrap/configuration.rb
Overview
Mutable runtime configuration used during application boot.
Instance Attribute Summary collapse
-
#enable_reloading ⇒ Object
Returns the value of attribute enable_reloading.
-
#environment ⇒ Object
Returns the value of attribute environment.
-
#theme_name ⇒ Object
Returns the value of attribute theme_name.
-
#timetrap_bin ⇒ Object
Returns the value of attribute timetrap_bin.
Instance Method Summary collapse
-
#initialize(environment: 'development') ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(environment: 'development') ⇒ Configuration
Returns a new instance of Configuration.
8 9 10 11 12 13 |
# File 'lib/qtimetrap/configuration.rb', line 8 def initialize(environment: 'development') @environment = environment @theme_name = 'light' @timetrap_bin = 't' @enable_reloading = environment == 'development' end |
Instance Attribute Details
#enable_reloading ⇒ Object
Returns the value of attribute enable_reloading.
6 7 8 |
# File 'lib/qtimetrap/configuration.rb', line 6 def enable_reloading @enable_reloading end |
#environment ⇒ Object
Returns the value of attribute environment.
6 7 8 |
# File 'lib/qtimetrap/configuration.rb', line 6 def environment @environment end |
#theme_name ⇒ Object
Returns the value of attribute theme_name.
6 7 8 |
# File 'lib/qtimetrap/configuration.rb', line 6 def theme_name @theme_name end |
#timetrap_bin ⇒ Object
Returns the value of attribute timetrap_bin.
6 7 8 |
# File 'lib/qtimetrap/configuration.rb', line 6 def timetrap_bin @timetrap_bin end |