Sha256: 62679e3aba662e6ff7b8641eaf5fb1f71722b0958a006371576b9fb416c0b7e0
Contents?: true
Size: 631 Bytes
Versions: 2
Compression:
Stored size: 631 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 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gir_ffi-0.9.0 | lib/gir_ffi/builders/unintrospectable_builder.rb |
gir_ffi-0.8.6 | lib/gir_ffi/builders/unintrospectable_builder.rb |