how to know if ruby is installed 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