Method: Proj4::Unit.list
- Defined in:
- ext/projrb.c
.list ⇒ Object
Return list of all units we know about.
call-seq: list -> Array of Proj4::Unit
441 442 443 444 445 446 447 448 |
# File 'ext/projrb.c', line 441 static VALUE unit_list(VALUE self){ struct PJ_UNITS *unit; VALUE list = rb_ary_new(); for (unit = pj_get_units_ref(); unit->id; unit++){ rb_ary_push(list, Data_Wrap_Struct(cUnit, 0, 0, unit)); } return list; } |