Class: Qs::ConfigFile
- Inherits:
-
Object
- Object
- Qs::ConfigFile
- Defined in:
- lib/qs/config_file.rb
Defined Under Namespace
Classes: NoConfigFileError, NoDaemonError
Instance Attribute Summary collapse
-
#daemon ⇒ Object
readonly
Returns the value of attribute daemon.
Instance Method Summary collapse
-
#initialize(file_path) ⇒ ConfigFile
constructor
A new instance of ConfigFile.
- #run(daemon) ⇒ Object
Constructor Details
#initialize(file_path) ⇒ ConfigFile
Returns a new instance of ConfigFile.
9 10 11 12 13 14 |
# File 'lib/qs/config_file.rb', line 9 def initialize(file_path) @file_path = build_file_path(file_path) @daemon = nil evaluate_file(@file_path) validate! end |
Instance Attribute Details
#daemon ⇒ Object (readonly)
Returns the value of attribute daemon.
7 8 9 |
# File 'lib/qs/config_file.rb', line 7 def daemon @daemon end |
Instance Method Details
#run(daemon) ⇒ Object
16 17 18 |
# File 'lib/qs/config_file.rb', line 16 def run(daemon) @daemon = daemon end |