Class: Example.Animal Abstract Deprecated
| Defined in: | node_modules/codo/spec/_templates/example/src/animal.coffee |
Overview
Deprecated.
This class is not used anymore
This
class
is abstract.
Each animal implementation must inherit from {Animal}
TODO:
Provide more examples
Note:
This is not used for codo, its purpose is to show all possible tags within a class.
Base class for all animals.
Examples:
How to subclass an animal
class Lion extends Animal
move: (direction, speed): ->
Direct Known Subclasses
Variables Summary
- ANSWER =
-
42The Answer to the Ultimate Question of Life, the Universe, and Everything
Class Method Summary
- . (Boolean) enterArk() Moves all animal into the ark.
Instance Method Summary
- # (void) move(options = {}) Move the animal.
- # (Boolean) copulate(animal) Bound Private Deprecated Deprecated. Do not copulate
Class Method Details
.
(Boolean)
enterArk()
Moves all animal into the ark.
Constructor Details
#
(void)
constructor(name, birthDate = new Date())
TODO:
Clean up
Construct a new animal.
Instance Method Details
#
(void)
move(options = {})
This
method
is abstract.
Move the animal.
Examples:
Move an animal
new Lion('Simba').move('south', 12)
#
(Boolean)
copulate(animal)
Bound
Private
Deprecated.
Do not copulate
Note:
Don't take it seriously
Copulate another animal.