module Bundler::GemHelpers - bundler-1.6.9 Documentation

# module Bundler::GemHelpers

### Constants

GENERICS
GENERIC_CACHE

### Public Instance Methods

generic(p) click to toggle source

    # File lib/bundler/gem_helpers.rb, line 13
    def generic(p)
      return p if p == Gem::Platform::RUBY

      GENERIC_CACHE[p] ||= begin
        _, found = GENERICS.find do |match, _generic|
          p.os == match.os && (!match.cpu || p.cpu == match.cpu)
        end
        found || Gem::Platform::RUBY
      end
    end