Install or upgrade Ruby 4.0 with winget
Download the instant installer and run!
The RubyInstaller project provides a self-contained Windows-based installer that includes a Ruby-language execution environment and a baseline set of required RubyGems and extensions.