Sha256: 5b10f5dea3eeab4d565e30a7a1a8f7f9f06c99fa07a8bed36db0d2349ab3d545

Contents?: true

Size: 570 Bytes

Versions: 13

Compression:

Stored size: 570 Bytes

Contents

# frozen_string_literal: true

require "gir_ffi/builders/registered_type_builder"
require "gir_ffi/builders/struct_like"
require "gir_ffi/union_base"
require "gir_ffi/union"

module GirFFI
  module Builders
    # Implements the creation of a class representing union type. The
    # class will have a nested GirFFI::Union class to represent its C union.
    class UnionBuilder < RegisteredTypeBuilder
      include StructLike

      def layout_superclass
        GirFFI::Union
      end

      private

      def superclass
        UnionBase
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
gir_ffi-0.17.0 lib/gir_ffi/builders/union_builder.rb
gir_ffi-0.16.1 lib/gir_ffi/builders/union_builder.rb
gir_ffi-0.16.0 lib/gir_ffi/builders/union_builder.rb
gir_ffi-0.15.9 lib/gir_ffi/builders/union_builder.rb
gir_ffi-0.15.8 lib/gir_ffi/builders/union_builder.rb
gir_ffi-0.15.7 lib/gir_ffi/builders/union_builder.rb
gir_ffi-0.15.6 lib/gir_ffi/builders/union_builder.rb
gir_ffi-0.15.5 lib/gir_ffi/builders/union_builder.rb
gir_ffi-0.15.4 lib/gir_ffi/builders/union_builder.rb
gir_ffi-0.15.3 lib/gir_ffi/builders/union_builder.rb
gir_ffi-0.15.2 lib/gir_ffi/builders/union_builder.rb
gir_ffi-0.15.1 lib/gir_ffi/builders/union_builder.rb
gir_ffi-0.15.0 lib/gir_ffi/builders/union_builder.rb