module GirFFI

Constants

VERSION

Public Class Methods

define_type(klass, &block) click to toggle source
# File lib/gir_ffi.rb, line 17
def self.define_type klass, &block
  Builder::Type::UserDefined.new(klass, &block).build_class

  klass.get_gtype
end
setup(module_name, version=nil) click to toggle source
# File lib/gir_ffi.rb, line 12
def self.setup module_name, version=nil
  module_name = module_name.to_s
  GirFFI::Builder.build_module module_name, version
end