vendor_dir()
public
Directory where vendor gems are installed.
Show source
def self.vendor_dir
if vendor_dir = ENV['GEM_VENDOR'] then
return vendor_dir.dup
end
return nil unless RbConfig::CONFIG.key? 'vendordir'
File.join RbConfig::CONFIG['vendordir'], 'gems',
RbConfig::CONFIG['ruby_version']
end