Access help to the Ruby C library from FFI.
gem install rubyapi
RubyAPI.attach_function :new_array, :rb_array_new, [], :object
RubyAPI.attach_function :inspect, :rb_p, [ :object ], :void
RubyAPI.inspect("Hello, world!")
RubyAPI.inspect(RubyAPI.new_array)
Simplified (2-clause) BSD license.