RubyGems C Extension Example
To compile and test the extension:
gem install rake-compiler rake
This example gem contains comments that are not present in the guide that would be distracting if mixed in with the guide text. I recommend you at least glance through each of the four files in the gem.