You can embed a Ruby interpreter or simply Ruby code in your C++ code. 
You can find tons of references online about how embedding Ruby works.

A brief example is shown in the "Extending Ruby" section of this book by 
Dave Thomas:
http://ruby-doc.org/docs/ProgrammingRuby/

-- 
Posted via http://www.ruby-forum.com/.