Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Gem::VersionOption#get_platform_from_requirements
get_platform_from_requirements(requirements)
lib/rubygems/version_option.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/version_option.rb, line 91
def get_platform_from_requirements(requirements)
Gem.platforms[1].to_s if requirements.key? :added_platform
end
Extract platform given on the command line