Ruby - Gems and Bundler
You want to add a gem only for Ruby version 3.1 or higher in your Gemfile. Which is the correct way?
if RUBY_VERSION >= '3.1' to conditionally add gems.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions