Class: Gtk::Application
- Inherits:
-
Object
- Object
- Gtk::Application
- Defined in:
- lib/gtk4/application.rb
Instance Method Summary collapse
-
#initialize(*args) ⇒ Application
constructor
A new instance of Application.
- #initialize_raw ⇒ Object
Constructor Details
#initialize(*args) ⇒ Application
Returns a new instance of Application.
20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/gtk4/application.rb', line 20 def initialize(*args) case args.size when 0 initialize_raw(nil, :flags_none) when 1 if args[0].is_a?(String) initialize_raw(args[0], :flags_none) else initialize_raw(nil, args[0]) end else initialize_raw(*args) end end |
Instance Method Details
#initialize_raw ⇒ Object
19 |
# File 'lib/gtk4/application.rb', line 19 alias_method :initialize_raw, :initialize |