Sha256: 4053866c8d63a04ad056c944f99e95d7ef6159960a25d1572ebb34e23451939b
Contents?: true
Size: 1.05 KB
Versions: 3
Compression:
Stored size: 1.05 KB
Contents
module GirFFI # :stopdoc: VERSION = '0.0.1' LIBPATH = ::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR PATH = ::File.dirname(LIBPATH) + ::File::SEPARATOR # :startdoc: # Returns the version string for the library. # def self.version VERSION end # Returns the library path for the module. If any arguments are given, # they will be joined to the end of the libray path using # <tt>File.join</tt>. # def self.libpath( *args ) args.empty? ? LIBPATH : ::File.join(LIBPATH, args.flatten) end # Returns the lpath for the module. If any arguments are given, # they will be joined to the end of the path using # <tt>File.join</tt>. # def self.path( *args ) args.empty? ? PATH : ::File.join(PATH, args.flatten) end end require 'gir_ffi/i_repository' require 'gir_ffi/builder' module GirFFI def self.setup module_name module_name = module_name.to_s GirFFI::Builder.build_module module_name begin require "gir_ffi/overrides/#{module_name.downcase}" rescue LoadError end end end # EOF
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gir_ffi-0.0.3 | lib/gir_ffi.rb |
gir_ffi-0.0.2 | lib/gir_ffi.rb |
gir_ffi-0.0.1 | lib/gir_ffi.rb |