Sha256: ce0e6d9f7061ca76e169db0db1204280751e58e4fa8cfae35a2c07211ce565cc

Contents?: true

Size: 549 Bytes

Versions: 3

Compression:

Stored size: 549 Bytes

Contents

require 'gir_ffi/builders/boxed_builder'

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 < BoxedBuilder
      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
        FFI::Struct
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gir_ffi-0.9.2 lib/gir_ffi/builders/unintrospectable_boxed_builder.rb
gir_ffi-0.9.1 lib/gir_ffi/builders/unintrospectable_boxed_builder.rb
gir_ffi-0.9.0 lib/gir_ffi/builders/unintrospectable_boxed_builder.rb