Sha256: b041c85afd1f0227d38033b2fa7e165b53d344c3823b4e4c2824310c7cf23961
Contents?: true
Size: 709 Bytes
Versions: 5
Compression:
Stored size: 709 Bytes
Contents
require 'gir_ffi/builder/type/registered_type' require 'gir_ffi/builder/type/with_layout' require 'gir_ffi/builder/type/with_methods' module GirFFI module Builder module Type # Implements the creation of a class representing one of the types # whose C representation is a struct, i.e., :object and :struct. class StructBased < RegisteredType include WithMethods include WithLayout private def instantiate_class @klass = get_or_define_class namespace_module, @classname, superclass @structklass = get_or_define_class @klass, :Struct, FFI::Struct setup_class unless already_set_up end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems