Methods

Class/Module Index [+]

Quicksearch

Bundler::GemHelpers

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.