Sha256: 6443f24894c55f6b079d678941f9224ad335f6f8c7b3acaed5b5e7b6c89d4ad1
Contents?: true
Size: 705 Bytes
Versions: 5
Compression:
Stored size: 705 Bytes
Contents
require 'gir_ffi/builders/object_builder' module GirFFI module Builders # Implements the creation of a class representing an object type for # which no data is found in the GIR. Typically, these are created to # cast objects returned by a function that returns an interface. class UnintrospectableBuilder < ObjectBuilder def klass @klass ||= TypeBuilder::CACHE[target_gtype] ||= Class.new(superclass) end def setup_class setup_constants setup_layout setup_interfaces end def setup_instance_method _method false end private def ancestor_infos info.interfaces end end end end
Version data entries
5 entries across 5 versions & 1 rubygems