Module: Yakg::Misc
- Defined in:
- lib/yakg.rb
Constant Summary collapse
- VENDOR_GEM_DIR =
File.(File.join(File.dirname(__FILE__), "..", "vendor", "gems", "ruby", get_abi))
Class Method Summary collapse
Class Method Details
.get_abi ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/yakg.rb', line 3 def self.get_abi if RUBY_VERSION.match /^1\.8/ "1.8" elsif RUBY_VERSION.match /^1\.9/ "1.9.1" elsif RUBY_VERSION.match /^2\./ RUBY_VERSION.sub /\A(\d\.\d).*\z/, '\1\.0' end end |