Module: RandomPhrase
- Defined in:
- lib/random_phrase.rb,
lib/random_phrase/version.rb
Defined Under Namespace
Modules: Dictionary
Constant Summary collapse
- VERSION =
"0.0.2"
Class Method Summary collapse
Class Method Details
.phrase(word_count = 1) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/random_phrase.rb', line 7 def self.phrase(word_count = 1) phrase = [] word_count.times do phrase << RandomPhrase::Dictionary.words.pick end phrase.join(" ") end |