Ruby 1.9.3p327(2012-11-10revision37606)
ext/-test-/array/resize/resize.c
Go to the documentation of this file.
00001 #include "ruby/ruby.h"
00002 
00003 static VALUE
00004 ary_resize(VALUE ary, VALUE len)
00005 {
00006     rb_ary_resize(ary, NUM2LONG(len));
00007     return ary;
00008 }
00009 
00010 void
00011 Init_resize(void)
00012 {
00013     rb_define_method(rb_cArray, "__resize__", ary_resize, 1);
00014 }
00015