Sha256: f72d2957a05f4c45eb5e2284ccea5810995bbef3442e8909a06800a11d0e4d99

Contents?: true

Size: 477 Bytes

Versions: 8

Compression:

Stored size: 477 Bytes

Contents

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

8 entries across 8 versions & 1 rubygems

Version Path
gir_ffi-0.9.2 lib/ffi-gobject/closure.rb
gir_ffi-0.9.1 lib/ffi-gobject/closure.rb
gir_ffi-0.9.0 lib/ffi-gobject/closure.rb
gir_ffi-0.8.6 lib/ffi-gobject/closure.rb
gir_ffi-0.8.5 lib/ffi-gobject/closure.rb
gir_ffi-0.8.4 lib/ffi-gobject/closure.rb
gir_ffi-0.8.3 lib/ffi-gobject/closure.rb
gir_ffi-0.8.2 lib/ffi-gobject/closure.rb