Class: Sh::Main
Instance Method Summary collapse
-
#initialize ⇒ Main
constructor
A new instance of Main.
Constructor Details
#initialize ⇒ Main
Returns a new instance of Main.
17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/sh_main.rb', line 17 def initialize # Load the database $db = Sh::Database.new # See sh_player.rb for why this Wx stuff is necessary Wx::App.run do Sh::View.new.show end puts 'Saving preferences...' Sh::Global.save_prefs puts 'Bye!' end |