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.
FIXME: Breaks parent interface.
# File lib/gir_ffi/builder/type/unintrospectable.rb, line 11 def initialize gtype @gtype = gtype @info = nil end
# File lib/gir_ffi/builder/type/unintrospectable.rb, line 16 def instantiate_class CACHE[@gtype] ||= Class.new(superclass) @klass = CACHE[@gtype] @structklass = get_or_define_class @klass, :Struct, layout_superclass setup_class unless already_set_up end
# File lib/gir_ffi/builder/type/unintrospectable.rb, line 27 def setup_class setup_constants setup_layout setup_interfaces setup_gtype_getter end
# File lib/gir_ffi/builder/type/unintrospectable.rb, line 34 def setup_instance_method method false end
# File lib/gir_ffi/builder/type/unintrospectable.rb, line 23 def target_gtype @gtype end