Sha256: 7aff55b7892bcb54bff7e745721b1b87fbb907b20aea515d273234c93b8d9583

Contents?: true

Size: 609 Bytes

Versions: 9

Compression:

Stored size: 609 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.send :include, GirFFI::InfoExt::FullTypeName
GObjectIntrospection::IConstantInfo.send :include, GirFFI::InfoExt::FullTypeName
GObjectIntrospection::IRegisteredTypeInfo.send :include, GirFFI::InfoExt::FullTypeName

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
gir_ffi-0.11.1 lib/gir_ffi/info_ext/full_type_name.rb
gir_ffi-0.11.0 lib/gir_ffi/info_ext/full_type_name.rb
gir_ffi-0.10.2 lib/gir_ffi/info_ext/full_type_name.rb
gir_ffi-0.10.1 lib/gir_ffi/info_ext/full_type_name.rb
gir_ffi-0.10.0 lib/gir_ffi/info_ext/full_type_name.rb
gir_ffi-0.10.0.pre1 lib/gir_ffi/info_ext/full_type_name.rb
gir_ffi-0.9.5 lib/gir_ffi/info_ext/full_type_name.rb
gir_ffi-0.9.4 lib/gir_ffi/info_ext/full_type_name.rb
gir_ffi-0.9.3 lib/gir_ffi/info_ext/full_type_name.rb