Module: Wq::Data
- Defined in:
- lib/wq/data.rb
Constant Summary collapse
- PATH =
File.("../../../data", __FILE__)
Class Method Summary collapse
Class Method Details
.quotes ⇒ Object
15 16 17 |
# File 'lib/wq/data.rb', line 15 def self.quotes JSON.parse(File.read(quotes_path), symbolize_names: true) end |
.quotes_path ⇒ Object
19 20 21 |
# File 'lib/wq/data.rb', line 19 def self.quotes_path File.join(PATH, "quotes.json") end |
.words ⇒ Object
7 8 9 |
# File 'lib/wq/data.rb', line 7 def self.words JSON.parse(File.read(words_path), symbolize_names: true) end |
.words_path ⇒ Object
11 12 13 |
# File 'lib/wq/data.rb', line 11 def self.words_path File.join(PATH, "words.json") end |