Ruby 1.9.3p327(2012-11-10revision37606)
|
00001 #include "ruby.h" 00002 00003 static VALUE 00004 bug_str_set_len(VALUE str, VALUE len) 00005 { 00006 rb_str_set_len(str, NUM2LONG(len)); 00007 return str; 00008 } 00009 00010 void 00011 Init_set_len(VALUE klass) 00012 { 00013 rb_define_method(klass, "set_len", bug_str_set_len, 1); 00014 } 00015