Sha256: 96d225f5b7c53d20075944c445de820445358d8814dbf888dcff99a1c4f914dd
Contents?: true
Size: 378 Bytes
Versions: 4
Compression:
Stored size: 378 Bytes
Contents
# frozen_string_literal: true require "gir_ffi/boxed_base" module GirFFI # Base class for generated classes representing GLib unions. class UnionBase < ClassBase extend FFI::DataConverter include GirFFI::StructLikeBase def initialize @struct = self.class::Struct.new @struct.owned = true @struct.to_ptr.autorelease = false end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
gir_ffi-0.15.3 | lib/gir_ffi/union_base.rb |
gir_ffi-0.15.2 | lib/gir_ffi/union_base.rb |
gir_ffi-0.15.1 | lib/gir_ffi/union_base.rb |
gir_ffi-0.15.0 | lib/gir_ffi/union_base.rb |