OK, you can create a ruby.sh file (for example, in your home folder):
/home/your/home/ruby.sh
/usr/bin/xterm -e /bin/sh -c "/path/to/ruby $1; exec /bin/sh" &
Create a new Sublime build file:
{
"cmd": ["/home/your/home/ruby.sh", "$file"]
}
, CTRL-B, ruby.sh , ruby /. xterm ().