Ruby Inline is my quick attempt to create an analog to Perl's Inline::C. It allows you to embed C or C++ external module code in your ruby script directly. The code is compiled and run on the fly when needed. The ruby version isn't near as feature-full as the perl version, but it is neat!
Gemfile gem 'RubyInline', '~> 3.1.0'
install gem install RubyInline -v 3.1.0