Class: Shoes::DeleteRace

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

Instance Method Summary collapse

Constructor Details

#initialize(race) ⇒ DeleteRace


14
15
16
17
18
19
20
21
22
# File 'lib/interface_widgets.rb', line 14

def initialize(race)
  image(20, 20, {:top => 8, :left => 250}) do
    delete_button
    click do
      @tournament.matches.delete(race)
      @matches.clear { list_matches }
    end
  end
end