Examveda

How do you specify a specific version of a gem to be installed in a Gemfile?

A. gem 'gem_name', '< version_number'

B. gem 'gem_name', '>= version_number'

C. gem 'gem_name', '~> version_number'

D. gem 'gem_name', '= version_number'

Answer: Option D


This Question Belongs to Ruby Programming >> Ruby Gems

Join The Discussion

Related Questions on Ruby Gems

What are Ruby Gems?

A. Ruby's built-in version control system for managing projects

B. Ruby modules for organizing code

C. Built-in data structures in Ruby

D. Pre-packaged libraries or applications that provide additional functionality to Ruby applications