Redhat does not have a free repo list unless you pay or subscribe to them.
The reason that I cannot install ruby is because there is no list of available repos
Check
/etc/repo.list
You can copy the file from CentOS to Redhat.
Then your yum could search for an accessible repo server and make your ruby downloadable.
source share