Sha256: 33b5bd5e1295a1256899545dfd86b9bcf96e6d228614f5294f52369e36fb5f8a

Contents?: true

Size: 610 Bytes

Versions: 9

Compression:

Stored size: 610 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.14.1 lib/gir_ffi/info_ext/full_type_name.rb
gir_ffi-0.14.0 lib/gir_ffi/info_ext/full_type_name.rb
gir_ffi-0.13.1 lib/gir_ffi/info_ext/full_type_name.rb
gir_ffi-0.13.0 lib/gir_ffi/info_ext/full_type_name.rb
gir_ffi-0.12.1 lib/gir_ffi/info_ext/full_type_name.rb
gir_ffi-0.12.0 lib/gir_ffi/info_ext/full_type_name.rb
gir_ffi-0.11.4 lib/gir_ffi/info_ext/full_type_name.rb
gir_ffi-0.11.3 lib/gir_ffi/info_ext/full_type_name.rb
gir_ffi-0.11.2 lib/gir_ffi/info_ext/full_type_name.rb