Class: Bug::Array

Inherits:
Object show all
Defined in:
ext/-test-/array/resize/resize.c

Defined Under Namespace

Classes: DataError

Class Method Summary collapse

Class Method Details

.__resize__(ary, len) ⇒ Object



3
4
5
6
7
8
# File 'ext/-test-/array/resize/resize.c', line 3

static VALUE
ary_resize(VALUE klass, VALUE ary, VALUE len)
{
    rb_ary_resize(ary, NUM2LONG(len));
    return ary;
}

.enc_raise(encoding, mesg) ⇒ Object



4
5
6
7
8
9
# File 'ext/-test-/exception/enc_raise.c', line 4

static VALUE
enc_raise(VALUE exc, VALUE encoding, VALUE mesg)
{
    rb_enc_raise(rb_to_encoding(encoding), exc, "%s", StringValueCStr(mesg));
    UNREACHABLE_RETURN(Qnil);
}