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 8 def interface_struct @interface_struct ||= Builder.build_class iface_struct_info end
Private Instance Methods
iface_struct_info()
click to toggle source
# File lib/gir_ffi/builders/interface_builder.rb, line 25 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 14 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 19 def setup_class klass.extend InterfaceBase setup_constants stub_methods end