What is the purpose of the --version flag when installing a gem using the gem install command in Ruby?
A. Installs the gem without checking for dependencies
B. Installs a specific version of Ruby
C. Installs the latest version of the gem
D. Specifies the version of the gem to be installed
Answer: Option D

Join The Discussion