Ruby  1.9.3p392(2013-02-22revision39386)
modify.c
Go to the documentation of this file.
1 #include "ruby.h"
2 
3 VALUE
5 {
6  rb_str_modify(str);
7  return str;
8 }
9 
10 VALUE
12 {
13  rb_str_modify_expand(str, NUM2LONG(expand));
14  return str;
15 }
16 
17 void
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