Ruby 3.4 RubyInstaller Team
Use this command to install Ruby 3.4:
winget install --id=RubyInstallerTeam.Ruby.3.4 -e
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.