Skip to content

Burgestrand/rubyapi

Repository files navigation

rubyapi

Access help to the Ruby C library from FFI.

Installation

gem install rubyapi

Usage

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)

WHY?

:trollface:

License

Simplified (2-clause) BSD license.

About

Access help to the Ruby C library from FFI

Resources

License

Stars

Watchers

Forks

Packages

No packages published