/* method: rank() -- returns the rank of the array */ static VALUE na_rank(VALUE self) { struct NARRAY *ary; GetNArray(self,ary); return INT2FIX(ary->rank); }