Sha256: e1ceeb4cb4781f19b235865d08848974cf48628132cf62f7ab52c9e246b77f0c
Contents?: true
Size: 608 Bytes
Versions: 7
Compression:
Stored size: 608 Bytes
Contents
# frozen_string_literal: true 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) end def load_class(classname) gir_ffi_builder.build_namespaced_class classname.to_s end 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
7 entries across 7 versions & 1 rubygems