Class: Cryptozoologist::Dictionary
- Inherits:
-
Object
- Object
- Cryptozoologist::Dictionary
- Defined in:
- lib/cryptozoologist/dictionary.rb
Instance Method Summary collapse
- #animals ⇒ Object
-
#initialize ⇒ Dictionary
constructor
A new instance of Dictionary.
Constructor Details
#initialize ⇒ Dictionary
Returns a new instance of Dictionary.
3 4 5 |
# File 'lib/cryptozoologist/dictionary.rb', line 3 def initialize @animals = [] end |
Instance Method Details
#animals ⇒ Object
7 8 9 10 11 |
# File 'lib/cryptozoologist/dictionary.rb', line 7 def animals @animals if @animals.any? @animals = Dictionaries.animals @animals end |