Sha256: 279459b6ef09fc6265e1f4fa8f0e24904df4267f1f9efbe89291b091acddaf63
Contents?: true
Size: 774 Bytes
Versions: 10
Compression:
Stored size: 774 Bytes
Contents
require 'gir_ffi/builder/type/registered_type' require 'gir_ffi/builder/type/with_methods' require 'gir_ffi/interface_base' module GirFFI module Builder module Type # Implements the creation of a module representing an Interface. class Interface < RegisteredType include WithMethods private # FIXME: The word 'class' is not really correct. def instantiate_class @klass = optionally_define_constant(namespace_module, @classname) do ::Module.new end setup_module unless already_set_up end def setup_module @klass.extend InterfaceBase setup_constants stub_methods setup_gtype_getter end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems