Class: Shoes::AddToRace

Inherits:
Widget
  • Object
show all
Defined in:
lib/interface_widgets.rb

Instance Method Summary collapse

Constructor Details

#initialize(racer) ⇒ AddToRace


48
49
50
51
52
53
54
55
56
57
58
59
# File 'lib/interface_widgets.rb', line 48

def initialize(racer)
  image(20, 20, {:top => 8, :left => 325}) do
    add_button
    click do
      @tournament.add_racer(racer)

      @matches.clear do
        list_matches
      end
    end
  end
end