Class: Shoes::DeleteRacer

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

Instance Method Summary collapse

Constructor Details

#initialize(racer) ⇒ DeleteRacer


2
3
4
5
6
7
8
9
10
# File 'lib/interface_widgets.rb', line 2

def initialize(racer)
  image(20, 20, {:top => 8, :left => 350}) do
    delete_button 
    click do
      @tournament.racers.delete(racer)
      @racer_list.clear { list_racers }
    end
  end
end