/* call-seq: * bz_get_reports -> array * * This method returns an array of strings who contain the * reports submitted by players. */ static VALUE bzflag_bz_getReports(VALUE self) { int i; VALUE reports = rb_ary_new(); for (i = 0; i < bz_getReports()->size(); i++) rb_ary_push(reports, rb_str_new2(bz_getReports()->get(i).c_str())); return reports; }