class method
Gem::Platform.generic
generic(platform)
lib/rubygems/platform.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems/platform.rb, line 300
def generic(platform)
return Gem::Platform::RUBY if platform.nil? || platform == Gem::Platform::RUBY
GENERIC_CACHE[platform] ||= begin
found = GENERICS.find do |match|
platform === match
end
found || Gem::Platform::RUBY
end
end
Returns the generic platform for the given platform.