Installing a major Ruby implementation without XCode
OS X includes the ruby interpreter it is in /usr/bin so on your path

On Yosemite

ruby --version


shows

ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]