/usr/lib/ruby/vendor_ruby/gir_ffi/info_ext/safe_function_name.rb is in ruby-gir-ffi 0.9.0-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 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
|