Sha256: 5b2aeb09b936c7f1ace456c4b730784af574df1ec4e768288b424140cc19836c
Contents?: true
Size: 703 Bytes
Versions: 3
Compression:
Stored size: 703 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 setup_class setup_layout setup_constants stub_methods setup_gtype_getter setup_field_accessors end def layout_superclass FFI::Struct end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gir_ffi-0.5.2 | lib/gir_ffi/builder/type/struct_based.rb |
gir_ffi-0.5.1 | lib/gir_ffi/builder/type/struct_based.rb |
gir_ffi-0.5.0 | lib/gir_ffi/builder/type/struct_based.rb |