Sha256: 1b72f3dbccd9602162cd0c14746ae9aab63d5e5d12c2b4a8a4f58b916e994b4b
Contents?: true
Size: 891 Bytes
Versions: 3
Compression:
Stored size: 891 Bytes
Contents
require 'gir_ffi/builders/registered_type_builder' require 'gir_ffi/builders/with_methods' require 'gir_ffi/interface_base' module GirFFI module Builders # Implements the creation of a module representing an Interface. class InterfaceBuilder < RegisteredTypeBuilder include WithMethods def interface_struct @interface_struct ||= Builder.build_class iface_struct_info end private # FIXME: The word 'class' is not really correct. def instantiate_class klass setup_module unless already_set_up end def klass @klass ||= get_or_define_module namespace_module, @classname end def setup_module 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gir_ffi-0.7.4 | lib/gir_ffi/builders/interface_builder.rb |
gir_ffi-0.7.3 | lib/gir_ffi/builders/interface_builder.rb |
gir_ffi-0.7.2 | lib/gir_ffi/builders/interface_builder.rb |