Sha256: db797f587e2e29a580c5bf1149fce33aa14c45b03d7d5f1cc7e3c30ef113cd28
Contents?: true
Size: 845 Bytes
Versions: 4
Compression:
Stored size: 845 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 def pretty_print "module #{@classname}\n extend InterfaceBase\nend" end 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 end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems