Class: GirFFI::UnionBase
Overview
Base class for generated classes representing GLib unions.
Constant Summary
Constants inherited from ClassBase
Instance Attribute Summary
Attributes inherited from ClassBase
Instance Method Summary collapse
-
#initialize ⇒ UnionBase
constructor
A new instance of UnionBase.
Methods included from StructLikeBase
Methods inherited from ClassBase
#==, direct_wrap, from, #setup_and_call, setup_and_call, to_callback_ffi_type, to_ffi_type, try_in_ancestors, wrap
Methods included from RegisteredTypeBase
Methods included from TypeBase
Methods included from MethodSetup
Methods included from InstanceMethodSetup
#setup_instance_method, #setup_instance_method!
Constructor Details
#initialize ⇒ UnionBase
Returns a new instance of UnionBase.
11 12 13 14 15 |
# File 'lib/gir_ffi/union_base.rb', line 11 def initialize @struct = self.class::Struct.new @struct.owned = true @struct.to_ptr.autorelease = false end |