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

Constructor Details

# (void) constructor(name, birthDate = new Date())

Construct a new plant.

Parameters:

  • name ( String ) the name of the plant
  • birthDate ( Date ) when the plant was born

Instance Method Details

# (void) grow(options = {})

Make the plant grow.

Examples:

Grow a plant

new Tree( 'Yggdrasil' ).grow( 1 )

Options Hash: (options):

  • speed ( Number ) the growth in cm

# (void) clone()

    Quickly fuzzy find classes, mixins, methods, file:

    Control the navigation frame:

    You can focus and blur the search input: