Ruby is installed on all DreamHost servers. As of Nov 2019, all Shared servers are running version 2.5.1. Other hosting plan types are running 1.9.3, but will soon be updated.
Ruby on Shared hosting
Due to the amount of memory Ruby on Rails may use, it's not recommended to run an app on Shared hosting. You will most likely be hit the Shared server's memory limits.