Sha256: 05081c11dd4c83136ab2c291fbf6c58ffbf8c603df05059f16b63659a8bd5349
Contents?: true
Size: 758 Bytes
Versions: 9
Compression:
Stored size: 758 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 ||= Builder.build_class iface_struct_info 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