Class: Moodwall::Config
- Inherits:
-
Object
- Object
- Moodwall::Config
- Defined in:
- lib/moodwall/config.rb
Constant Summary collapse
- DEFAULTS =
{ executable: { command: "feh", arguments: "--bg-fill" } }.freeze
Instance Attribute Summary collapse
-
#executable ⇒ Object
readonly
Returns the value of attribute executable.
Instance Method Summary collapse
-
#initialize(config_file = ConfigFile.new) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(config_file = ConfigFile.new) ⇒ Config
Returns a new instance of Config.
12 13 14 15 |
# File 'lib/moodwall/config.rb', line 12 def initialize(config_file = ConfigFile.new) @data = config_file.data @executable = decorate_executable(@data.fetch("executable", {})) end |
Instance Attribute Details
#executable ⇒ Object (readonly)
Returns the value of attribute executable.
10 11 12 |
# File 'lib/moodwall/config.rb', line 10 def executable @executable end |