Methods

Class/Module Index [+]

Quicksearch

Bundler::GemHelpers

Public Instance Methods

generic(p) click to toggle source
# File lib/bundler/gem_helpers.rb, line 12
def generic(p)
  return p if p == Gem::Platform::RUBY

  GENERIC_CACHE[p] ||= begin
    found = GENERICS.find do |p2|
      p2.is_a?(Gem::Platform) && p.os == p2.os
    end
    found || Gem::Platform::RUBY
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.