Sha256: 4e4acc2310ea4e90b04afbf8ee34f32b4e91211e09127c9986baebc9cf26538b

Contents?: true

Size: 563 Bytes

Versions: 19

Compression:

Stored size: 563 Bytes

Contents

# 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)

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
ela-4.1.6 node_modules/codo/spec/_templates/example/src/lion.coffee
ela-4.1.5 node_modules/codo/spec/_templates/example/src/lion.coffee
ela-4.1.4 node_modules/codo/spec/_templates/example/src/lion.coffee
ela-4.1.3 node_modules/codo/spec/_templates/example/src/lion.coffee
ela-4.1.2 node_modules/codo/spec/_templates/example/src/lion.coffee
ela-4.1.1 node_modules/codo/spec/_templates/example/src/lion.coffee
ela-4.1.0 node_modules/codo/spec/_templates/example/src/lion.coffee
ela-4.0.0 node_modules/codo/spec/_templates/example/src/lion.coffee
ela-3.4.3 node_modules/codo/spec/_templates/example/src/lion.coffee
ela-3.4.2 node_modules/codo/spec/_templates/example/src/lion.coffee
ela-3.4.0 node_modules/codo/spec/_templates/example/src/lion.coffee
ela-3.3.1 node_modules/codo/spec/_templates/example/src/lion.coffee
ela-3.3.0 node_modules/codo/spec/_templates/example/src/lion.coffee
ela-3.2.0 node_modules/codo/spec/_templates/example/src/lion.coffee
ela-3.1.1 node_modules/codo/spec/_templates/example/src/lion.coffee
ela-3.1.0 node_modules/codo/spec/_templates/example/src/lion.coffee
ela-3.0.0 node_modules/codo/spec/_templates/example/src/lion.coffee
ela-2.0.0 node_modules/codo/spec/_templates/example/src/lion.coffee
ela-1.1.0 node_modules/codo/spec/_templates/example/src/lion.coffee