Sha256: 246b98f1fab9772e035874db885a1da7054e4b67637673e8fd68e6c95fa6dd41

Contents?: true

Size: 632 Bytes

Versions: 8

Compression:

Stored size: 632 Bytes

Contents

# frozen_string_literal: true

require 'gir_ffi/info_ext/full_type_name'

module GirFFI
  # Represents a boxed type not found in the GIR, conforming, as needed, to the
  # interface of GObjectIntrospection::IUnionInfo and GObjectIntrospection::IStructInfo.
  class UnintrospectableBoxedInfo
    attr_reader :g_type

    def initialize(gtype)
      @g_type = gtype
    end

    def info_type
      :unintrospectable_boxed
    end

    def safe_name
      GObject.type_name g_type
    end

    DEFAULT_BOXED_NAMESPACE = 'GLib'.freeze

    def namespace
      DEFAULT_BOXED_NAMESPACE
    end

    def fields
      []
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
gir_ffi-0.14.1 lib/gir_ffi/unintrospectable_boxed_info.rb
gir_ffi-0.14.0 lib/gir_ffi/unintrospectable_boxed_info.rb
gir_ffi-0.13.1 lib/gir_ffi/unintrospectable_boxed_info.rb
gir_ffi-0.13.0 lib/gir_ffi/unintrospectable_boxed_info.rb
gir_ffi-0.12.1 lib/gir_ffi/unintrospectable_boxed_info.rb
gir_ffi-0.11.4 lib/gir_ffi/unintrospectable_boxed_info.rb
gir_ffi-0.11.3 lib/gir_ffi/unintrospectable_boxed_info.rb
gir_ffi-0.11.2 lib/gir_ffi/unintrospectable_boxed_info.rb