/usr/lib/ruby/vendor_ruby/gir_ffi/info_ext/i_registered_type_info.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 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | require 'gir_ffi/builder_helper'
module GirFFI
module InfoExt
# Extensions for GObjectIntrospection::IRegisteredTypeInfo needed by GirFFI
module IRegisteredTypeInfo
def to_ffi_type
to_type.to_ffi_type
end
def to_type
Builder.build_class self
end
def find_instance_method(method)
info = find_method method
return info if info && info.method?
end
def find_method(_method)
raise 'Must be overridden in subclass'
end
end
end
end
GObjectIntrospection::IRegisteredTypeInfo.send :include,
GirFFI::InfoExt::IRegisteredTypeInfo
|