Class: Example.Animal
Defined in: | node_modules/grunt-codo/test/fixtures/default/animal.coffee |
Overview
Base class for all animals.
Examples:
How to subclass an animal
class Lion extends Animal
move: (direction, speed) ->
Variables Summary
- ANSWER =
-
42
The Answer to the Ultimate Question of Life, the Universe, and Everything
Instance Method Summary
- # (void) move(options = {}) Move the animal.
Constructor Details
#
(void)
constructor(name, birthDate = new Date())
Construct a new animal.
Instance Method Details
#
(void)
move(options = {})
Move the animal.
Examples:
Move an animal
new Lion('Simba').move('south', 12)