Class: Sh::Main

Inherits:
Object show all
Defined in:
lib/sh_main.rb

Instance Method Summary collapse

Constructor Details

#initializeMain

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