class Fish

Attributes

x[RW]
x_speed[RW]
y[RW]
y_speed[RW]

Public Class Methods

new() click to toggle source
Calls superclass method Gtk::Image::new
# File gtk3/sample/gtk-demo/fishbowl.rb, line 33
def initialize
  super(:icon_name => random_icon_name, :size => :dialog)
  @x = 10
  @y = 10
  @x_speed = rand(1..200)
  @y_speed = rand(1..200)
end