/usr/lib/ruby/vendor_ruby/ffi-gobject/object_class.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 | GObject.load_class :ObjectClass
module GObject
# Overrides for GObjectClass, a struct containing GObject's class data
class ObjectClass
def set_property=(callback)
@struct[:set_property] = GObject::ObjectSetPropertyFunc.from callback
end
def get_property=(callback)
@struct[:get_property] = GObject::ObjectGetPropertyFunc.from callback
end
def gtype
GirFFI::InOutPointer.new(:GType, to_ptr).to_value
end
end
end
|