Sha256: 5a873c531e4456bbd87808fe40fa425b62fc321566b598b10ec2ce4abb3db39c
Contents?: true
Size: 707 Bytes
Versions: 2
Compression:
Stored size: 707 Bytes
Contents
module GirFFI # Base module for modules representing GLib namespaces. module ModuleBase def method_missing method, *arguments, &block result = setup_method method.to_s return super unless result send method, *arguments, &block end def const_missing classname load_class(classname) || super end # @deprecated The load_class method should always be used. Remove in 0.8.0 def setup_class classname gir_ffi_builder.build_namespaced_class classname.to_s end alias_method :load_class, :setup_class def gir_ffi_builder self::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.7.7 | lib/gir_ffi/module_base.rb |
gir_ffi-0.7.6 | lib/gir_ffi/module_base.rb |