Ruby extensions and support classes