module GirFFI::ModuleBase

Public Instance Methods

_builder() click to toggle source

@deprecated Compatibility function. Remove in version 0.5.0.

# File lib/gir_ffi/module_base.rb, line 20
def _builder
  gir_ffi_builder
end
_setup_method(name) click to toggle source

@deprecated Compatibility function. Remove in version 0.5.0.

# File lib/gir_ffi/module_base.rb, line 29
def _setup_method name
  setup_method name
end
const_missing(classname) click to toggle source
# File lib/gir_ffi/module_base.rb, line 9
def const_missing classname
  klass = load_class classname
  return super if klass.nil?
  klass
end
gir_ffi_builder() click to toggle source
# File lib/gir_ffi/module_base.rb, line 24
def gir_ffi_builder
  self.const_get :GIR_FFI_BUILDER
end
load_class(classname) click to toggle source
# File lib/gir_ffi/module_base.rb, line 15
def load_class classname
  gir_ffi_builder.build_namespaced_class classname.to_s
end
method_missing(method, *arguments, &block) click to toggle source
# File lib/gir_ffi/module_base.rb, line 3
def method_missing method, *arguments, &block
  result = setup_method method.to_s
  return super unless result
  self.send method, *arguments, &block
end
setup_method(name) click to toggle source
# File lib/gir_ffi/module_base.rb, line 33
def setup_method name
  gir_ffi_builder.setup_method name
end