method
generic
ruby latest stable - Class:
Bundler::GemHelpers
generic(p)public
No documentation available.
# File lib/bundler/gem_helpers.rb, line 16
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