Method: ETFC::Dictionary#random
- Defined in:
- lib/etfc/dictionary.rb
#random ⇒ Object
Public: Returns a random word
Example:
random
#=> 'mephitical'
Returns a random word (String)
20 21 22 23 24 |
# File 'lib/etfc/dictionary.rb', line 20 def random init if @words.empty? @words.pop end |