new ruby code generator for Mif classes