Class: Example.Plant
Defined in: | node_modules/grunt-codo/test/fixtures/custom/plant.coffee |
Overview
Base class for all plants.
Examples:
How to subclass an plant
class Tree extends plant
grow: ( speed ) ->
Instance Method Summary
- # (void) grow(options = {}) Make the plant grow.
- # (void) clone()
Constructor Details
#
(void)
constructor(name, birthDate = new Date())
Construct a new plant.
Instance Method Details
#
(void)
grow(options = {})
Make the plant grow.
Examples:
Grow a plant
new Tree( 'Yggdrasil' ).grow( 1 )
#
(void)
clone()