api_generator:cpp: fix ruby wrap