Sha256: facf627b9b85ff3f06912d3ad31231b59805aec010ae817ad9702452424439c7

Contents?: true

Size: 343 Bytes

Versions: 13

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

13 entries across 13 versions & 1 rubygems

Version Path
gir_ffi-0.9.2 lib/gir_ffi/info_ext/safe_function_name.rb
gir_ffi-0.9.1 lib/gir_ffi/info_ext/safe_function_name.rb
gir_ffi-0.9.0 lib/gir_ffi/info_ext/safe_function_name.rb
gir_ffi-0.8.6 lib/gir_ffi/info_ext/safe_function_name.rb
gir_ffi-0.8.5 lib/gir_ffi/info_ext/safe_function_name.rb
gir_ffi-0.8.4 lib/gir_ffi/info_ext/safe_function_name.rb
gir_ffi-0.8.3 lib/gir_ffi/info_ext/safe_function_name.rb
gir_ffi-0.8.2 lib/gir_ffi/info_ext/safe_function_name.rb
gir_ffi-0.8.1 lib/gir_ffi/info_ext/safe_function_name.rb
gir_ffi-0.8.0 lib/gir_ffi/info_ext/safe_function_name.rb
gir_ffi-0.7.10 lib/gir_ffi/info_ext/safe_function_name.rb
gir_ffi-0.7.9 lib/gir_ffi/info_ext/safe_function_name.rb
gir_ffi-0.7.8 lib/gir_ffi/info_ext/safe_function_name.rb