/usr/lib/ruby/vendor_ruby/ffi-gobject_introspection/i_property_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 | module GObjectIntrospection
# Wraps a GIPropertyInfo struct.
# Represents a property of an IObjectInfo or an IInterfaceInfo.
class IPropertyInfo < IBaseInfo
def property_type
ITypeInfo.wrap(Lib.g_property_info_get_type @gobj)
end
def flags
Lib.g_property_info_get_flags @gobj
end
def readable?
flags & 1 != 0
end
def writeable?
flags & 2 != 0
end
def construct?
flags & 4 != 0
end
def construct_only?
flags & 8 != 0
end
end
end
|