Sha256: 94258f0bafbc0328410bfb6a92b54ef17f6fd33f15d6bb85a46ef1e7212e1077
Contents?: true
Size: 565 Bytes
Versions: 13
Compression:
Stored size: 565 Bytes
Contents
# frozen_string_literal: true module GirFFI module InfoExt # Extensions for GObjectIntrospection::IValueInfo needed by GirFFI module IValueInfo def constant_name upcased_name = name.upcase if /^[0-9]/.match?(upcased_name) "VALUE_#{upcased_name}" else upcased_name end end def to_callback_ffi_type return :pointer if direction != :in argument_type.to_callback_ffi_type end end end end GObjectIntrospection::IValueInfo.include GirFFI::InfoExt::IValueInfo
Version data entries
13 entries across 13 versions & 1 rubygems