Sha256: 85ad4107a10e5991d3b2314fe519c536df784198caccc878e602c57ff5c40cc6
Contents?: true
Size: 790 Bytes
Versions: 1
Compression:
Stored size: 790 Bytes
Contents
# frozen_string_literal: true GLib.load_class :Variant module GLib # Overrides for GVariant, GLib's variant data type. class Variant setup_instance_method! "get_string" def get_string_with_override get_string_without_override.first end alias get_string_without_override get_string alias get_string get_string_with_override # 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. def store_pointer(ptr) Lib.g_variant_ref_sink ptr super end # For variants, wrap_copy does not do any copying. def self.wrap_copy(val) wrap(val) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gir_ffi-0.16.0 | lib/ffi-glib/variant.rb |