Sha256: be2e110879e369b4d02f710cc63fb3abcf521f566f951696b479b4bfb83d8ef5

Contents?: true

Size: 667 Bytes

Versions: 9

Compression:

Stored size: 667 Bytes

Contents

# frozen_string_literal: true

require 'gir_ffi/builders/registered_type_builder'
require 'gir_ffi/builders/struct_like'

module GirFFI
  module Builders
    # Implements the creation of a class representing a boxed type for
    # which no data is found in the GIR.
    class UnintrospectableBoxedBuilder < RegisteredTypeBuilder
      include StructLike

      def klass
        @klass ||= TypeBuilder::CACHE[target_gtype] ||= Class.new(superclass)
      end

      def setup_class
        setup_layout
        setup_constants
      end

      def superclass
        BoxedBase
      end

      def layout_superclass
        GirFFI::Struct
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
gir_ffi-0.14.1 lib/gir_ffi/builders/unintrospectable_boxed_builder.rb
gir_ffi-0.14.0 lib/gir_ffi/builders/unintrospectable_boxed_builder.rb
gir_ffi-0.13.1 lib/gir_ffi/builders/unintrospectable_boxed_builder.rb
gir_ffi-0.13.0 lib/gir_ffi/builders/unintrospectable_boxed_builder.rb
gir_ffi-0.12.1 lib/gir_ffi/builders/unintrospectable_boxed_builder.rb
gir_ffi-0.12.0 lib/gir_ffi/builders/unintrospectable_boxed_builder.rb
gir_ffi-0.11.4 lib/gir_ffi/builders/unintrospectable_boxed_builder.rb
gir_ffi-0.11.3 lib/gir_ffi/builders/unintrospectable_boxed_builder.rb
gir_ffi-0.11.2 lib/gir_ffi/builders/unintrospectable_boxed_builder.rb