Class: Okayu::App

Inherits:
Wx::App
  • Object
show all
Defined in:
lib/app.rb

Instance Method Summary collapse

Constructor Details

#initializeApp

Returns a new instance of App.



3
4
5
6
# File 'lib/app.rb', line 3

def initialize
  @teardowned = false
  super()
end

Instance Method Details

#on_exitObject



17
18
19
20
21
22
23
# File 'lib/app.rb', line 17

def on_exit
  unless @teardowned
    UserInfo.save
    @teardowned = true
  end
  super
end

#on_initObject



9
10
11
12
13
14
15
# File 'lib/app.rb', line 9

def on_init
  UserInfo.load
  Okayu::connect_db

  frame = AppFrame.new("おかゆ")
  frame.show
end