Module: GirFFI::InfoExt::SafeFunctionName
- 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_name ⇒ Object
6 7 8 9 10 |
# File 'lib/gir_ffi/info_ext/safe_function_name.rb', line 6 def safe_name name = self.name return '_' if name.empty? name end |