Class: CCEngine::Config
- Inherits:
-
Object
- Object
- CCEngine::Config
- Defined in:
- lib/cc_engine/config.rb
Instance Method Summary collapse
- #enabled? ⇒ Boolean
- #exclude_paths ⇒ Object
- #include_paths ⇒ Object
-
#initialize(json_string) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(json_string) ⇒ Config
Returns a new instance of Config.
5 6 7 |
# File 'lib/cc_engine/config.rb', line 5 def initialize(json_string) @json_string = json_string end |
Instance Method Details
#enabled? ⇒ Boolean
17 18 19 |
# File 'lib/cc_engine/config.rb', line 17 def enabled? parsed_json.fetch("enabled") end |
#exclude_paths ⇒ Object
13 14 15 |
# File 'lib/cc_engine/config.rb', line 13 def exclude_paths parsed_json.fetch("exclude_paths") end |
#include_paths ⇒ Object
9 10 11 |
# File 'lib/cc_engine/config.rb', line 9 def include_paths parsed_json.fetch("include_paths") end |