class
Bird
The base class for all birds.
instance method
public
fly
Bird.fly(symbol, number) -> bool Bird.fly(string, number) -> bool
Source code
# File example.rb, line 51 def fly(direction, velocity) _fly_impl(direction, velocity) end
instance method
public
speak
speak() { |text| ... }
Produce some noise.
Source code
# File example.rb, line 32 def speak # :yields: text puts 'generic tweeting' yield 'tweet' yield 'tweet' end