ruby is scripting language like PHP or javascript is. you need to have ruby engine installed on your computer in order to run ruby scripts. if you are asking just about ROR, you need to install it (or compile it) on computer you want to run it on.
ruby like PHP is well documented (well not that much but sure has a lot in manual) so i would suggest you to read it