Sha256: 3c5659c2db0b3119ba7b4515af279c057ddd4127b357fede2c91ab384318e523
Contents?: true
Size: 784 Bytes
Versions: 14
Compression:
Stored size: 784 Bytes
Contents
# frozen_string_literal: true module GirFFI module InfoExt # Extension module provinding a #safe_name method suitable for types. module SafeConstantName def safe_name name.tr("-", "_").sub(/^[_a-z]/) do |char| case char when "_" "Private___" else char.upcase end end end end end end GObjectIntrospection::ICallbackInfo.include GirFFI::InfoExt::SafeConstantName GObjectIntrospection::IConstantInfo.include GirFFI::InfoExt::SafeConstantName GObjectIntrospection::IRegisteredTypeInfo.include GirFFI::InfoExt::SafeConstantName GObjectIntrospection::ISignalInfo.include GirFFI::InfoExt::SafeConstantName GObjectIntrospection::IVFuncInfo.include GirFFI::InfoExt::SafeConstantName
Version data entries
14 entries across 14 versions & 1 rubygems