ruby_to_c translates a static ruby subset to C. Hopefully it works.
Ryan Davis
gem "RubyToC", "~> 1.0.0.5"