codo
Version:
A CoffeeScript documentation generator.
27 lines (23 loc) • 563 B
text/coffeescript
# A dangerous lion. Take care.
#
# @author Simba
# @see http://en.wikipedia.org/wiki/Lion
# @include Example.AngryAnimal
# @extend MissingMixin
#
class Example.Animal.Lion extends Example.Animal
# Maximum speed in MPH
@MAX_SPEED = 50
# Move the lion fast
#
# @param [String] direction the moving direction
# @param [Number] speed the moving speed
#
move: (direction, speed) ->
super({ diection: direction, speed: speed })
# Escape at maximum speed.
#
# @param (see #move)
#
escape: (direction) ->
@move(direction, @MAX_SPEED)