Sha256: 7137054d7e0d3dbee61ed18875a04d2e20ac4b2c264dc0d9083d616fcb98960d
Contents?: true
Size: 507 Bytes
Versions: 4
Compression:
Stored size: 507 Bytes
Contents
# frozen_string_literal: true 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
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
gir_ffi-0.10.0.pre1 | lib/ffi-gobject/closure.rb |
gir_ffi-0.9.5 | lib/ffi-gobject/closure.rb |
gir_ffi-0.9.4 | lib/ffi-gobject/closure.rb |
gir_ffi-0.9.3 | lib/ffi-gobject/closure.rb |