/usr/lib/ruby/vendor_ruby/ffi-gobject_introspection/i_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 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | module GObjectIntrospection
# Wraps a GITypeInfo struct.
# Represents type information, direction, transfer etc.
class ITypeInfo < IBaseInfo
def pointer?
Lib.g_type_info_is_pointer @gobj
end
def tag
Lib.g_type_info_get_tag @gobj
end
def param_type(index)
ITypeInfo.wrap(Lib.g_type_info_get_param_type @gobj, index)
end
def interface
ptr = Lib.g_type_info_get_interface @gobj
IRepository.wrap_ibaseinfo_pointer ptr
end
def array_length
Lib.g_type_info_get_array_length @gobj
end
def array_fixed_size
Lib.g_type_info_get_array_fixed_size @gobj
end
def array_type
Lib.g_type_info_get_array_type @gobj
end
def zero_terminated?
Lib.g_type_info_is_zero_terminated @gobj
end
def name
raise 'Should not call this for ITypeInfo'
end
end
end
|