Class: Okayu::App
- Inherits:
-
Wx::App
- Object
- Wx::App
- Okayu::App
- Defined in:
- lib/app.rb
Instance Method Summary collapse
-
#initialize ⇒ App
constructor
A new instance of App.
- #on_exit ⇒ Object
- #on_init ⇒ Object
Constructor Details
#initialize ⇒ App
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_exit ⇒ Object
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_init ⇒ Object
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 |