Class: Randamu::Animal

Inherits:
Base
  • Object
show all
Defined in:
lib/randamu/core/animal.rb

Constant Summary collapse

ANIMAL_TYPES =
%w(mammal bird fish amphibian reptile insect).freeze

Class Method Summary collapse

Methods inherited from Base

load_data

Class Method Details

.animal(type: nil) ⇒ Object



6
7
8
# File 'lib/randamu/core/animal.rb', line 6

def animal(type: nil)
  animal_type(type).sample
end