mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
5631792727
for test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
14 lines
219 B
C
14 lines
219 B
C
#include "ruby/ruby.h"
|
|
|
|
static VALUE
|
|
ary_resize(VALUE ary, VALUE len)
|
|
{
|
|
rb_ary_resize(ary, NUM2LONG(len));
|
|
return ary;
|
|
}
|
|
|
|
void
|
|
Init_resize(void)
|
|
{
|
|
rb_define_method(rb_cArray, "__resize__", ary_resize, 1);
|
|
}
|