Class: Gio::ApplicationCommandLine

Inherits:
Object
  • Object
show all
Defined in:
lib/gio2/application-command-line.rb

Instance Method Summary collapse

Constructor Details

#initialize(properties = nil) ⇒ ApplicationCommandLine

Returns a new instance of ApplicationCommandLine.



19
20
21
22
23
24
25
26
27
28
29
# File 'lib/gio2/application-command-line.rb', line 19

def initialize(properties=nil)
  if properties
    arguments = properties[:arguments]
    if arguments and !arguments.is_a?(GLib::Variant)
      arguments = GLib::Variant.new(arguments,
                                    GLib::VariantType::BYTESTRING_ARRAY)
      properties = properties.merge(:arguments => arguments)
    end
  end
  super(properties)
end