Class: Escape::Configuration
- Inherits:
-
Object
- Object
- Escape::Configuration
- Defined in:
- lib/escape/configuration.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.load(path) ⇒ Object
18 19 20 |
# File 'lib/escape/configuration.rb', line 18 def load(path) new(YAML.load_file(path)) end |
Instance Method Details
#clues ⇒ Object
5 6 7 |
# File 'lib/escape/configuration.rb', line 5 def clues config["clues"] end |
#questions ⇒ Object
9 10 11 |
# File 'lib/escape/configuration.rb', line 9 def questions QuestionList.load(config["questions"]) end |
#welcome_message ⇒ Object
13 14 15 |
# File 'lib/escape/configuration.rb', line 13 def config["welcome_message"] end |