Sha256: 5f6606ea36772c48c8490a6d6062ace3e4b170f0c4105152e75ed4399a554a5e

Contents?: true

Size: 594 Bytes

Versions: 1

Compression:

Stored size: 594 Bytes

Contents

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'

    def namespace
      DEFAULT_BOXED_NAMESPACE
    end

    def fields
      []
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gir_ffi-0.9.0 lib/gir_ffi/unintrospectable_boxed_info.rb