Ruby 1.9.3p327(2012-11-10revision37606)
ext/-test-/string/ellipsize.c
Go to the documentation of this file.
00001 #include "ruby.h"
00002 
00003 static VALUE
00004 bug_str_ellipsize(VALUE str, VALUE len)
00005 {
00006     return rb_str_ellipsize(str, NUM2LONG(len));
00007 }
00008 
00009 void
00010 Init_ellipsize(VALUE klass)
00011 {
00012     rb_define_method(klass, "ellipsize", bug_str_ellipsize, 1);
00013 }
00014