Sha256: 2fed9a182eb834dc12fedcb6cdf88f5bf1b9b36ac570c0f3ab790d35ffb78c52

Contents?: true

Size: 585 Bytes

Versions: 5

Compression:

Stored size: 585 Bytes

Contents

# frozen_string_literal: true

module GirFFI
  module InfoExt
    # Extension module provinding a #full_name method suitable for
    # callbacks, constants and registered types. Signals and vfuncs need a
    # different implementation.
    #
    module FullTypeName
      def full_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

5 entries across 5 versions & 1 rubygems

Version Path
gir_ffi-0.18.0 lib/gir_ffi/info_ext/full_type_name.rb
gir_ffi-0.17.0 lib/gir_ffi/info_ext/full_type_name.rb
gir_ffi-0.16.1 lib/gir_ffi/info_ext/full_type_name.rb
gir_ffi-0.16.0 lib/gir_ffi/info_ext/full_type_name.rb
gir_ffi-0.15.9 lib/gir_ffi/info_ext/full_type_name.rb