Ruby is a popular object-oriented programming language you can install Rruby on WHM/cPanel server, test ruby pacakge,

# yum list ruby
Loaded plugins: fastestmirror, rhnplugin
Loading mirror speeds from cached hostfile
 * cloudlinux-x86_64-server-6: cl-mirror.qwords.net
 * rpmforge: ftp.tu-chemnitz.de
Available Packages
ruby.x86_64                                                1.8.7.374-4.el6_6                                                cloudlinux-x86_64-server-6


Install :

If you do not see any errors run the below script, this should install ruby and rails and gems, then we can managed via cPanel. 
 
#  /scripts/installruby 

Total download size: 1.0 M
Installed size: 0  
Downloading Packages:
--------------------------------------------------------------------------------
Total                                           158 kB/s | 1.0 MB     00:06     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : ruby-1.8.7.374-4.el6_6.x86_64                                1/3 
  Installing : ruby-1.8.7.374-4.el6_6.x86_64                                1/3 
  Installing : ruby-1.8.7.374-4.el6_6.x86_64                                1/3 
  Installing : ruby-1.8.7.374-4.el6_6.x86_64                                1/3 
  Installing : ruby-1.8.7.374-4.el6_6.x86_64                                1/3 
  Installing : ruby-1.8.7.374-4.el6_6.x86_64                                1/3 
  Installing : ruby-1.8.7.374-4.el6_6.x86_64                                1/3Complete!
  Installing : ruby-1.8.7.374-4.el6_6.x86_64                                1/3
info [installruby] Prelinking is disabled.
Installing sqlite3 gem...
Installing rails...
...


Once the installation completed make sure that the opened the appropriate posts for cpanel users. By default, Ruby on Rails® application begin on Port : 12001 while the second Ruby on Rails application will use port 12002.
 
Files and Directories:

The following table lists the files that the /scripts/installruby script creates:
    
File                 Description

/etc/init.d/ror    This is the initialization script for Ruby on Rails.
/usr/bin/ruby    This is the Ruby binary.
/usr/bin/gem    This is the Gem binary.

The /scripts/installruby creates the following directories to run ruby.
    

/usr/lib/ruby/    It's a library directory for Ruby.
/root/.gem/      It's a root directory for the entire system.

If you will getting some troubleshooting just  re-run the /scripts/installruby script.