Sha256: 51936b752539a5b37884e96f0520f8264c073f9c89784963385b386b8725be90
Contents?: true
Size: 786 Bytes
Versions: 3
Compression:
Stored size: 786 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 instantiate_class setup_class unless already_set_up end 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 signal_definers info.interfaces end end end end
Version data entries
3 entries across 3 versions & 1 rubygems