Sha256: 2320956477327ac104a04f1b2cdcccfdf82772694e5fe264bc0b9877a194f7f1

Contents?: true

Size: 440 Bytes

Versions: 1

Compression:

Stored size: 440 Bytes

Contents

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

    def self.constructor_wrap ptr
      super.tap { |variant| variant.ref }
    end

    alias_method :get_string_without_override, :get_string
    alias_method :get_string, :get_string_with_override
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gir_ffi-0.7.6 lib/ffi-glib/variant.rb