Class: GObject::Closure

Inherits:
Object
  • Object
show all
Defined in:
lib/ffi-gobject/closure.rb

Overview

Overrides for GClosure, GObject’s base class for closure objects.

To create Closure objects wrapping Ruby code, use RubyClosure.

Direct Known Subclasses

RubyClosure

Instance Method Summary collapse

Instance Method Details

#set_marshal(marshal) ⇒ Object

Parameters:

  • marshal (Proc)

    The marshaller to use for this closure object



13
14
15
16
# File 'lib/ffi-gobject/closure.rb', line 13

def set_marshal(marshal)
  callback = GObject::ClosureMarshal.from marshal
  Lib.g_closure_set_marshal self, callback
end