Class: UltraPowList

Inherits:
Object
  • Object
show all
Defined in:
lib/ultra_pow_list.rb

Constant Summary collapse

VERSION =
File.read( File.join(File.dirname(__FILE__),'..','VERSION') ).strip

Class Method Summary collapse

Class Method Details

.make_loadable(libs = ['uv','textpow']) ⇒ Object



4
5
6
7
8
9
10
11
12
# File 'lib/ultra_pow_list.rb', line 4

def self.make_loadable(libs=['uv','textpow'])
  vendor = File.dirname(__FILE__) + "/ultra_pow_list/vendor/"

  dir = RUBY_VERSION =~ /^1.9/ ? "ruby1.9" : "ruby1.8"

  libs.each do |lib|
    $:.unshift File.join(vendor, dir, lib)
  end
end