Class: Gtk::Application
- Inherits:
-
Gio::Application
- Object
- Gio::Application
- Gtk::Application
- Defined in:
- lib/rabbit/gtk.rb
Instance Attribute Summary collapse
-
#windows ⇒ Object
readonly
Returns the value of attribute windows.
Instance Method Summary collapse
-
#initialize(id, flags) ⇒ Application
constructor
A new instance of Application.
Constructor Details
#initialize(id, flags) ⇒ Application
Returns a new instance of Application.
118 119 120 121 122 123 124 |
# File 'lib/rabbit/gtk.rb', line 118 def initialize(id, flags) super signal_connect_after("activate") do Gtk.main unless @windows.empty? end @windows = [] end |
Instance Attribute Details
#windows ⇒ Object (readonly)
Returns the value of attribute windows.
117 118 119 |
# File 'lib/rabbit/gtk.rb', line 117 def windows @windows end |