/usr/lib/ruby/vendor_ruby/ffi-gobject/closure.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 :Closure
module GObject
# Overrides for GClosure, GObject's base class for closure objects.
#
# To create Closure objects wrapping Ruby code, use {RubyClosure}.
class Closure
setup_method :new_simple
# @override
#
# @param [Proc] marshal The marshaller to use for this closure object
def set_marshal(marshal)
callback = GObject::ClosureMarshal.from marshal
Lib.g_closure_set_marshal self, callback
end
end
end
|