Sha256: 8b3a26df35cd81c2ae5eeb6904b112a7308c51963ec021d2a56696ba335f24d5

Contents?: true

Size: 983 Bytes

Versions: 2

Compression:

Stored size: 983 Bytes

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
  end
end
# EOF

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gir_ffi-0.0.5 lib/gir_ffi.rb
gir_ffi-0.0.4 lib/gir_ffi.rb