Module: RandomPhrase::Dictionary::DefaultLoader
- Defined in:
- lib/random_phrase/dictionary.rb
Class Method Summary collapse
Class Method Details
.load ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/random_phrase/dictionary.rb', line 7 def self.load if File.exists?("config/words") File.read("config/words").split else "flowing river down brightly sparkling in the sun may I dip my toes".split end end |