Sha256: 23849d0e02241b9955b64c6305f297d9364f68261565395da4a0f757d1794340
Contents?: true
Size: 825 Bytes
Versions: 3
Compression:
Stored size: 825 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 klass = load_class classname return super if klass.nil? klass end def load_class classname gir_ffi_builder.build_namespaced_class classname.to_s end # @deprecated Compatibility function. Remove in version 0.5.0. def _builder gir_ffi_builder end def gir_ffi_builder self.const_get :GIR_FFI_BUILDER end # @deprecated Compatibility function. Remove in version 0.5.0. def _setup_method name setup_method name end def setup_method name gir_ffi_builder.setup_method name end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gir_ffi-0.4.3 | lib/gir_ffi/module_base.rb |
gir_ffi-0.4.2 | lib/gir_ffi/module_base.rb |
gir_ffi-0.4.1 | lib/gir_ffi/module_base.rb |