Class: AwesomeAnimal
- Inherits:
-
Object
- Object
- AwesomeAnimal
- Defined in:
- lib/awesome_animal.rb
Constant Summary collapse
- ADJECTIVES =
File.read('lib/adjective.txt').split("\n").shuffle
- ANIMALS =
File.read('lib/animals.txt').split("\n").shuffle
Class Method Summary collapse
Class Method Details
.random ⇒ Object
6 7 8 |
# File 'lib/awesome_animal.rb', line 6 def self.random "#{ADJECTIVES.choice} #{ANIMALS.choice}" end |