Sha256: 14bb04d40484790a6d54386977c623173bfe99dc3ac6721ae3bc5c7cd7b7a2dc
Contents?: true
Size: 843 Bytes
Versions: 9
Compression:
Stored size: 843 Bytes
Contents
# frozen_string_literal: true require "gir_ffi/builders/registered_type_builder" require "gir_ffi/interface_base" module GirFFI module Builders # Implements the creation of a module representing an Interface. class InterfaceBuilder < RegisteredTypeBuilder def interface_struct @interface_struct ||= StructBuilder.new(iface_struct_info, superclass: GObject::TypeInterface).build_class end private def klass @klass ||= get_or_define_module namespace_module, @classname end # FIXME: The word 'class' is not really correct. def setup_class klass.extend InterfaceBase setup_constants stub_methods end def iface_struct_info @iface_struct_info ||= info.iface_struct end end end end
Version data entries
9 entries across 9 versions & 1 rubygems