Module: Wq::Data

Defined in:
lib/wq/data.rb

Constant Summary collapse

PATH =
File.expand_path("../../../data", __FILE__)

Class Method Summary collapse

Class Method Details

.quotesObject



15
16
17
# File 'lib/wq/data.rb', line 15

def self.quotes
  JSON.parse(File.read(quotes_path), symbolize_names: true)
end

.quotes_pathObject



19
20
21
# File 'lib/wq/data.rb', line 19

def self.quotes_path
  File.join(PATH, "quotes.json")
end

.wordsObject



7
8
9
# File 'lib/wq/data.rb', line 7

def self.words
  JSON.parse(File.read(words_path), symbolize_names: true)
end

.words_pathObject



11
12
13
# File 'lib/wq/data.rb', line 11

def self.words_path
  File.join(PATH, "words.json")
end