first, make the Makefile
$ ruby extconf.rb
creating Makefile
next, build the extension
$ make
compiling wat.c
linking shared-object wat.so
to load the extension, just require 'wat'
require './wat'
#=> truea module named Wat will be available for including/extending
include Wat
set_secret_ivar "hola"
get_secret_ivar
#=> "hola"there are also tests
$ ruby wat_test.rb
Run options: --seed 30532
# Running tests:
...
Finished tests in 0.001754s, 1710.6552 tests/s, 1710.6552 assertions/s.
3 tests, 3 assertions, 0 failures, 0 errors, 0 skips