how to check the following gem installed or not code example
Example: how do i know if a gem is installed
# answer will be true or false
gem list -i <gem_name>
# Add the version option
gem list -i <gem_name> -v version
# answer will be true or false
gem list -i <gem_name>
# Add the version option
gem list -i <gem_name> -v version