Class: Gio::ApplicationCommandLine
- Inherits:
-
Object
- Object
- Gio::ApplicationCommandLine
- Defined in:
- lib/gio2/application-command-line.rb
Instance Method Summary collapse
-
#initialize(properties = nil) ⇒ ApplicationCommandLine
constructor
A new instance of ApplicationCommandLine.
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 |