blob: a6930051b6ea235fa5d0127079c272f9756dc03d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include "ruby.h"
VALUE
bug_str_modify(VALUE str)
{
rb_str_modify(str);
return str;
}
void
Init_modify(VALUE klass)
{
rb_define_method(klass, "modify!", bug_str_modify, 0);
}
|