Sha256: bc6b52f9c2246ccdc542bee6cea93524dffe2586603766ceed635f08c94c73d2

Contents?: true

Size: 701 Bytes

Versions: 7

Compression:

Stored size: 701 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 a Struct.
      class Struct < RegisteredType
        include WithMethods
        include WithLayout

        private

        def setup_class
          setup_layout
          setup_constants
          stub_methods
          setup_gtype_getter
          setup_field_accessors
          provide_constructor
        end

        # FIXME: Private method only in subclass
        def layout_superclass
          FFI::Struct
        end
      end
    end
  end
end


Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
gir_ffi-0.6.6 lib/gir_ffi/builder/type/struct.rb
gir_ffi-0.6.5 lib/gir_ffi/builder/type/struct.rb
gir_ffi-0.6.4 lib/gir_ffi/builder/type/struct.rb
gir_ffi-0.6.3 lib/gir_ffi/builder/type/struct.rb
gir_ffi-0.6.2 lib/gir_ffi/builder/type/struct.rb
gir_ffi-0.6.1 lib/gir_ffi/builder/type/struct.rb
gir_ffi-0.6.0 lib/gir_ffi/builder/type/struct.rb