Class: QTimetrap::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/qtimetrap/configuration.rb

Overview

Mutable runtime configuration used during application boot.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_reloadingObject

Returns the value of attribute enable_reloading.



6
7
8
# File 'lib/qtimetrap/configuration.rb', line 6

def enable_reloading
  @enable_reloading
end

#environmentObject

Returns the value of attribute environment.



6
7
8
# File 'lib/qtimetrap/configuration.rb', line 6

def environment
  @environment
end

#theme_nameObject

Returns the value of attribute theme_name.



6
7
8
# File 'lib/qtimetrap/configuration.rb', line 6

def theme_name
  @theme_name
end

#timetrap_binObject

Returns the value of attribute timetrap_bin.



6
7
8
# File 'lib/qtimetrap/configuration.rb', line 6

def timetrap_bin
  @timetrap_bin
end