Class: Escape::Configuration

Inherits:
Object
  • Object
show all
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

#cluesObject



5
6
7
# File 'lib/escape/configuration.rb', line 5

def clues
  config["clues"]
end

#questionsObject



9
10
11
# File 'lib/escape/configuration.rb', line 9

def questions
  QuestionList.load(config["questions"])
end

#welcome_messageObject



13
14
15
# File 'lib/escape/configuration.rb', line 13

def welcome_message
  config["welcome_message"]
end