class GirFFI::Builders::InterfaceBuilder

Implements the creation of a module representing an Interface.

Public Instance Methods

interface_struct() click to toggle source
# File lib/gir_ffi/builders/interface_builder.rb, line 10
def interface_struct
  @interface_struct ||=
    StructBuilder.new(iface_struct_info,
                      superclass: GObject::TypeInterface).build_class
end

Private Instance Methods

iface_struct_info() click to toggle source
# File lib/gir_ffi/builders/interface_builder.rb, line 29
def iface_struct_info
  @iface_struct_info ||= info.iface_struct
end
klass() click to toggle source
# File lib/gir_ffi/builders/interface_builder.rb, line 18
def klass
  @klass ||= get_or_define_module namespace_module, @classname
end
setup_class() click to toggle source

FIXME: The word 'class' is not really correct.

# File lib/gir_ffi/builders/interface_builder.rb, line 23
def setup_class
  klass.extend InterfaceBase
  setup_constants
  stub_methods
end