Ruby
1.9.3p392(2013-02-22revision39386)
Main Page
Modules
Data Structures
Files
File List
Globals
ext
-test-
string
modify.c
Go to the documentation of this file.
1
#include "ruby.h"
2
3
VALUE
4
bug_str_modify
(
VALUE
str)
5
{
6
rb_str_modify
(str);
7
return
str;
8
}
9
10
VALUE
11
bug_str_modify_expand
(
VALUE
str,
VALUE
expand)
12
{
13
rb_str_modify_expand
(str,
NUM2LONG
(expand));
14
return
str;
15
}
16
17
void
18
Init_modify
(
VALUE
klass)
19
{
20
rb_define_method
(klass,
"modify!"
,
bug_str_modify
, 0);
21
rb_define_method
(klass,
"modify_expand!"
,
bug_str_modify_expand
, 1);
22
}
23
Generated on Tue Feb 26 2013 08:42:54 for Ruby by
1.8.3