Class: Gtk::Application

Inherits:
Object
  • Object
show all
Defined in:
lib/gtk3/application.rb

Instance Method Summary collapse

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/gtk3/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_rawObject



19
# File 'lib/gtk3/application.rb', line 19

alias_method :initialize_raw, :initialize