Sha256: 9861e89d3f540cbb10d29ab72297ff4b6f3fde552cc8b4cf2e02078fba5ec394

Contents?: true

Size: 752 Bytes

Versions: 4

Compression:

Stored size: 752 Bytes

Contents

# Class: Bird
**Inherits:** Object
    
**Defined in:** example.rb

The base class for all birds.

# Public Instance Methods
## _fly_impl(_direction, _velocity) [](#method-i-_fly_impl)
:nodoc:

## fly(direction, velocity) [](#method-i-fly)
Fly somewhere.

Flying is the most critical feature of birds.

:args: direction, velocity

:call-seq:
    Bird.fly(symbol, number) -> bool
    Bird.fly(string, number) -> bool

# Example

    fly(:south, 70)

## speak() [](#method-i-speak)
Produce some noise. -- FIXME: maybe extract this to a base class `Animal`? ++



# Constants
## DEFAULT_DUCK_VELOCITY [](#constant-DEFAULT_DUCK_VELOCITY)
Default velocity for a flying duck.

## DEFAULT_SPEED [](#constant-DEFAULT_SPEED)
Maximum speed for a swimming duck.

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
yard-markdown-0.3.6 example/Bird.md
yard-markdown-0.3.5 example/Bird.md
yard-markdown-0.3.4 example/Bird.md
yard-markdown-0.3.2 example/Bird.md