Its a sample code for ruby c extension library gem