Ruby 1.9.3p327(2012-11-10revision37606)
|
00001 #include "ruby.h" 00002 00003 VALUE 00004 bug_str_modify(VALUE str) 00005 { 00006 rb_str_modify(str); 00007 return str; 00008 } 00009 00010 VALUE 00011 bug_str_modify_expand(VALUE str, VALUE expand) 00012 { 00013 rb_str_modify_expand(str, NUM2LONG(expand)); 00014 return str; 00015 } 00016 00017 void 00018 Init_modify(VALUE klass) 00019 { 00020 rb_define_method(klass, "modify!", bug_str_modify, 0); 00021 rb_define_method(klass, "modify_expand!", bug_str_modify_expand, 1); 00022 } 00023