Sha256: a78957988c97af5243a16395414d8ff5806d48870b9799bbe915338f204a2f3f
Contents?: true
Size: 827 Bytes
Versions: 7
Compression:
Stored size: 827 Bytes
Contents
require 'gir_ffi/builder_helper' require 'gir_ffi/builder/type/base' require 'gir_ffi/builder/type/callback' require 'gir_ffi/builder/type/constant' require 'gir_ffi/builder/type/enum' require 'gir_ffi/builder/type/union' require 'gir_ffi/builder/type/object' require 'gir_ffi/builder/type/struct' require 'gir_ffi/builder/type/interface' module GirFFI # Builds a class based on information found in the introspection # repository. module Builder module Type TYPE_MAP = { :callback => Callback, :constant => Constant, :enum => Enum, :flags => Enum, :interface => Interface, :object => Object, :struct => Struct, :union => Union } def self.build info TYPE_MAP[info.info_type].new(info).build_class end end end end
Version data entries
7 entries across 7 versions & 1 rubygems