Module: GirFFIGtk::MainLoopOverride
- Included in:
- Gtk
- Defined in:
- lib/gir_ffi-gtk/base.rb
Overview
Override main to start an idle thread to allow Ruby threads to run during the main loop, and to handle exceptions
Defined Under Namespace
Modules: ClassMethods Classes: DummyLoop
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
35 36 37 38 39 40 41 |
# File 'lib/gir_ffi-gtk/base.rb', line 35 def self.included(base) base.extend ClassMethods class << base alias_method :main_without_override, :main alias_method :main, :main_with_override end end |