method

generic

ruby latest stable - Class: Bundler::GemHelpers

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

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