Sha256: 3827115f3989e0ac43269563c2a98c753a10c82aa154e2f26b91b1f2f0ee052c

Contents?: true

Size: 589 Bytes

Versions: 9

Compression:

Stored size: 589 Bytes

Contents

# frozen_string_literal: true

module GirFFI
  module InfoExt
    # Extension module provinding a #full_type_name method suitable for
    # callbacks, constants and registered types. Signals and vfuncs need a
    # different implementation.
    module FullTypeName
      def full_type_name
        "#{safe_namespace}::#{safe_name}"
      end
    end
  end
end

GObjectIntrospection::ICallbackInfo.include GirFFI::InfoExt::FullTypeName
GObjectIntrospection::IConstantInfo.include GirFFI::InfoExt::FullTypeName
GObjectIntrospection::IRegisteredTypeInfo.include GirFFI::InfoExt::FullTypeName

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
gir_ffi-0.15.8 lib/gir_ffi/info_ext/full_type_name.rb
gir_ffi-0.15.7 lib/gir_ffi/info_ext/full_type_name.rb
gir_ffi-0.15.6 lib/gir_ffi/info_ext/full_type_name.rb
gir_ffi-0.15.5 lib/gir_ffi/info_ext/full_type_name.rb
gir_ffi-0.15.4 lib/gir_ffi/info_ext/full_type_name.rb
gir_ffi-0.15.3 lib/gir_ffi/info_ext/full_type_name.rb
gir_ffi-0.15.2 lib/gir_ffi/info_ext/full_type_name.rb
gir_ffi-0.15.1 lib/gir_ffi/info_ext/full_type_name.rb
gir_ffi-0.15.0 lib/gir_ffi/info_ext/full_type_name.rb