Module: GirFFI::InfoExt::SafeFunctionName

Included in:
GObjectIntrospection::IFunctionInfo
Defined in:
lib/gir_ffi/info_ext/safe_function_name.rb

Overview

Extension module provinding a #safe_name method suitable for functions.

Instance Method Summary collapse

Instance Method Details

#safe_nameObject



7
8
9
10
11
12
# File 'lib/gir_ffi/info_ext/safe_function_name.rb', line 7

def safe_name
  name = self.name
  return "_" if name.empty?

  name
end