Sha256: 94010a09515bacbc15e79abc44943675493a2f596c9f0edf6d09dc5cc2aceccc

Contents?: true

Size: 343 Bytes

Versions: 17

Compression:

Stored size: 343 Bytes

Contents

module GirFFI
  module InfoExt
    # Extension module provinding a #safe_name method suitable for functions.
    module SafeFunctionName
      def safe_name
        name = self.name
        return "_" if name.empty?
        name
      end
    end
  end
end

GObjectIntrospection::IFunctionInfo.send :include, GirFFI::InfoExt::SafeFunctionName

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
gir_ffi-0.7.7 lib/gir_ffi/info_ext/safe_function_name.rb
gir_ffi-0.7.6 lib/gir_ffi/info_ext/safe_function_name.rb
gir_ffi-0.7.5 lib/gir_ffi/info_ext/safe_function_name.rb
gir_ffi-0.7.4 lib/gir_ffi/info_ext/safe_function_name.rb
gir_ffi-0.7.3 lib/gir_ffi/info_ext/safe_function_name.rb
gir_ffi-0.7.2 lib/gir_ffi/info_ext/safe_function_name.rb
gir_ffi-0.7.1 lib/gir_ffi/info_ext/safe_function_name.rb
gir_ffi-0.7.0 lib/gir_ffi/info_ext/safe_function_name.rb
gir_ffi-0.6.7 lib/gir_ffi/info_ext/safe_function_name.rb
gir_ffi-0.6.6 lib/gir_ffi/info_ext/safe_function_name.rb
gir_ffi-0.6.5 lib/gir_ffi/info_ext/safe_function_name.rb
gir_ffi-0.6.4 lib/gir_ffi/info_ext/safe_function_name.rb
gir_ffi-0.6.3 lib/gir_ffi/info_ext/safe_function_name.rb
gir_ffi-0.6.2 lib/gir_ffi/info_ext/safe_function_name.rb
gir_ffi-0.6.1 lib/gir_ffi/info_ext/safe_function_name.rb
gir_ffi-0.6.0 lib/gir_ffi/info_ext/safe_function_name.rb
gir_ffi-0.5.2 lib/gir_ffi/info_ext/safe_function_name.rb