Class: MittensUi::Application
- Inherits:
-
Object
- Object
- MittensUi::Application
- Defined in:
- lib/mittens_ui.rb
Class Method Summary collapse
Class Method Details
.exit(&block) ⇒ Object
31 32 33 34 35 36 37 38 |
# File 'lib/mittens_ui.rb', line 31 def exit(&block) begin yield if block_given? Kernel.exit(0) rescue => _error Kernel.exit(1) end end |
.Window(options = {}, &block) ⇒ Object
27 28 29 |
# File 'lib/mittens_ui.rb', line 27 def Window( = {}, &block) init_gtk_application(, &block) end |