Ruby
1.9.3p551(2014-11-13revision48407)
Main Page
Modules
Data Structures
Files
File List
Globals
ext
-test-
array
resize
resize.c
Go to the documentation of this file.
1
#include "
ruby/ruby.h
"
2
3
static
VALUE
4
ary_resize
(
VALUE
ary,
VALUE
len
)
5
{
6
rb_ary_resize
(ary,
NUM2LONG
(len));
7
return
ary;
8
}
9
10
void
11
Init_resize
(
void
)
12
{
13
rb_define_method
(
rb_cArray
,
"__resize__"
,
ary_resize
, 1);
14
}
15
Generated on Fri Nov 14 2014 16:03:53 for Ruby by
1.8.3