Sha256: e26486a87500be844da180986a101a0bd5850a96424d22f5d8d18fc06354c06a
Contents?: true
Size: 722 Bytes
Versions: 1
Compression:
Stored size: 722 Bytes
Contents
# Class: Fish **Inherits:** Object **Defined in:** example_yard.rb The base class for all fish. # Public Instance Methods ## make_sound() [](#method-i-make_sound) Make a sound. **return** [void] **yield** [sound] The sound produced by the fish **yieldparam** [String] The actual sound ## swim(direction, speed) [](#method-i-swim) Swim in a specific direction. Swimming is the most critical feature of fish. **param** [Symbol, String] The direction to swim **param** [Integer] The speed at which to swim **return** [Boolean] Whether the swim was successful **example** ```ruby swim(:north, 30) ``` # Constants ## DEFAULT_SALMON_SPEED [](#constant-DEFAULT_SALMON_SPEED) ## MAX_DEPTH [](#constant-MAX_DEPTH)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
yard-markdown-0.4 | example/Fish.md |