class GLib::Variant
Overrides for GVariant, GLib’s variant data type.
Public Class Methods
Source
# File lib/ffi-glib/variant.rb, line 28 def self.wrap_copy(val) wrap(val) end
For variants, wrap_copy
does not do any copying.
Public Instance Methods
Source
# File lib/ffi-glib/variant.rb, line 10 def get_string_with_override get_string_without_override.first end
Also aliased as: get_string
Source
# File lib/ffi-glib/variant.rb, line 22 def store_pointer(ptr) Lib.g_variant_ref_sink ptr super end
Initializing method used in constructors. For Variant
the constructing functions all return floating references, so this is need to take full ownership.
Also see the documentation for g_variant_ref_sink.
Calls superclass method