Sha256: 93542acc6807326ee4baad95f366788706117a5a33d7e40183da5e40efa04cc3
Contents?: true
Size: 969 Bytes
Versions: 4
Compression:
Stored size: 969 Bytes
Contents
# Class: Duck **Inherits:** Object **Extended by:** Animal **Includes:** Waterfowl **Defined in:** example.rb A duck is a Waterfowl Bird. Features: bird:: * speak * fly waterfowl:: * swim # Public Instance Methods ## initialize(domestic, rubber) [](#method-i-initialize) Creates a new duck. ## speak() [](#method-i-speak) Duck overrides generic implementation. ## swim() [](#method-i-swim) Swimming helper. ## useful?() [](#method-i-useful?) Checks if this duck is a useful one. :call-seq: Bird.useful? -> bool # Public Class Methods ## rubber_ducks() [](#method-c-rubber_ducks) # Attributes ## domestic[RW] [](#attribute-i-domestic) True for domestic ducks. ## rubber[RW] [](#attribute-i-rubber) True for rubber ducks. # 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/Duck.md |
yard-markdown-0.3.5 | example/Duck.md |
yard-markdown-0.3.4 | example/Duck.md |
yard-markdown-0.3.2 | example/Duck.md |