mirror of
https://github.com/ruby/ruby.git
synced 2026-10-29 00:46:26 +08:00
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
14 lines
233 B
C
14 lines
233 B
C
#include "ruby.h"
|
|
|
|
static VALUE
|
|
bug_str_ellipsize(VALUE str, VALUE len)
|
|
{
|
|
return rb_str_ellipsize(str, NUM2LEN(len));
|
|
}
|
|
|
|
void
|
|
Init_string_ellipsize(VALUE klass)
|
|
{
|
|
rb_define_method(klass, "ellipsize", bug_str_ellipsize, 1);
|
|
}
|