Sha256: cebe38405a7a09cb34ee4b57620dca5c5864c8a48eb1de58dadb06334de3a6e5
Contents?: true
Size: 607 Bytes
Versions: 2
Compression:
Stored size: 607 Bytes
Contents
module GirFFI module ModuleBase def method_missing method, *arguments, &block result = setup_method method.to_s return super unless result self.send method, *arguments, &block end def const_missing classname load_class(classname) || super end # TODO: Rename to setup_class to match setup and setup_method. def load_class classname gir_ffi_builder.build_namespaced_class classname.to_s end def gir_ffi_builder self.const_get :GIR_FFI_BUILDER end def setup_method name gir_ffi_builder.setup_method name end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gir_ffi-0.6.6 | lib/gir_ffi/module_base.rb |
gir_ffi-0.6.5 | lib/gir_ffi/module_base.rb |