Sha256: 7e1f65471a83eb4cbb740483145bd6ea4b4d4b3737fafbfb10a9d96719e584ad
Contents?: true
Size: 796 Bytes
Versions: 2
Compression:
Stored size: 796 Bytes
Contents
# Class: Bird | | | | -----------------: | :----- | | **Inherits:** | Object | | **Defined in:** | example.rb | The base class for all birds. # 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. # 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+? ++
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
yard-markdown-0.3.0 | example/Bird.md |
yard-markdown-0.2.2 | example/Bird.md |