Ruby extension